Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.76ms] Passed 4 tests
An overview of server-side resources used by ShrinkTheWeb Refresh All
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.45 ▲1.05 |
Dashboard /wp-admin | 3.44 ▲0.09 | 43.76 ▼16.22 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.29 ▲2.61 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.01 ▼5.68 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.08 ▼2.17 |
STW Refresh All /wp-admin/options-general.php?page=stwRefreshAll | 3.33 | 31.38 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_stw_links |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShrinkTheWeb Refresh All
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.59 ▼0.04 | 1.95 ▲0.37 | 43.43 ▲3.11 |
Dashboard /wp-admin | 2,202 ▲21 | 5.63 ▼0.08 | 82.00 ▼15.74 | 40.64 ▲1.97 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.05 | 34.44 ▼2.32 | 32.41 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.14 ▲4.94 | 675.64 ▲39.18 | 58.49 ▼11.71 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▲0.00 | 95.20 ▼1.71 | 40.36 ▼5.78 |
STW Refresh All /wp-admin/options-general.php?page=stwRefreshAll | 901 | 1.99 | 24.32 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_stw_links
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/shrinktheweb-refresh-all/stw-refresh-all.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shrinktheweb-refresh-all/stw-refresh-all.php:52
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: schedule, website screenshots, recapture, thumbnails, previews
shrinktheweb-refresh-all/stw-refresh-all.php 92% from 13 tests
The primary PHP file in "ShrinkTheWeb Refresh All" version 1.3.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("shrinktheweb-refresh-all.php" instead of "stw-refresh-all.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin684 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 227 | 117 | 684 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 159.00 |
▷ Minimum class complexity | 159.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 6.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin