Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.94MB] [CPU: ▼34.01ms] Passed 4 tests
This is a short check of server-side resources used by Hide Inactive Sites
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.21 ▲0.48 |
Dashboard /wp-admin | 3.00 ▼0.30 | 23.53 ▼30.55 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 27.83 ▼20.85 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.83 ▼69.91 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 23.08 ▼14.72 |
Hide Inactive Sites /wp-admin/options-general.php?page=hide-inactive-sites-options | 3.00 | 25.11 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Hide Inactive Sites: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.18 | 1.54 ▼0.37 | 38.17 ▼14.24 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.94 | 93.17 ▼13.59 | 38.48 ▼9.08 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 38.14 ▲3.27 | 35.22 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,523 ▲6 | 23.25 ▲5.48 | 636.19 ▼19.64 | 57.46 ▲3.98 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.28 ▲0.11 | 94.50 ▼0.28 | 41.41 ▼1.46 |
Hide Inactive Sites /wp-admin/options-general.php?page=hide-inactive-sites-options | 1,088 | 2.06 | 22.63 | 41.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+306
Undefined index: update_frequency
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+320
Undefined index: inactivity_threshold
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+334
Undefined index: inactivity_warning_threshold
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+349
Undefined index: site_visibility
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+359
Undefined index: archive_site
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+361
Undefined index: delete_site
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hide-inactive-sites-options
- > Notice in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php+382
Undefined index: min_posts
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/hide-inactive-sites/hide-inactive-sites.php on line 12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (The Network Admin dashboard screen. Each of the options can be added on to using the hooks in the plugin.)
hide-inactive-sites/hide-inactive-sites.php Passed 13 tests
The entry point to "Hide Inactive Sites" version 1.2.2 is a PHP file that has certain tags in its header comment area
89 characters long description:
Changes visibility of a blog after it has had no activity for a specified amount of time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin403 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 73 | 35 | 403 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 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 | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.94KB | 10.89KB | ▼ 48.02% |