Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/subdomains.php+87
Methods with the same name as their class will not be constructors in a future version of PHP; WpsPlugin has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼59.90ms] Passed 4 tests
Analyzing server-side resources used by WP Subdomains (Revisited)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 5.94 ▼34.10 |
Dashboard /wp-admin | 2.12 ▼1.23 | 7.65 ▼59.53 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.76 ▼46.07 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.99 ▼99.91 |
Media Library /wp-admin/upload.php | 2.12 ▼1.12 | 5.39 ▼30.94 |
Pages /wp-admin/admin.php?page=wps_pages | 2.12 | 6.14 |
Settings /wp-admin/admin.php?page=wps_settings | 2.12 | 7.16 |
Categories /wp-admin/admin.php?page=wps_categories | 2.12 | 7.60 |
WP Subdomains /wp-admin/admin.php?page=wps | 2.12 | 6.29 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_category_subdomains |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
wps_version |
Browser metrics Passed 4 tests
Checking browser requirements for WP Subdomains (Revisited)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.73 ▲0.59 | 1.96 ▲0.26 | 42.46 ▲1.23 |
Dashboard /wp-admin | 2,217 ▲40 | 5.59 ▲0.00 | 87.24 ▼5.72 | 77.48 ▲22.50 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.00 ▼0.00 | 33.96 ▼2.71 | 31.99 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,554 ▲19 | 17.77 ▼5.27 | 751.72 ▲91.34 | 60.92 ▲4.85 |
Media Library /wp-admin/upload.php | 1,437 ▲34 | 4.13 ▼0.14 | 99.45 ▼7.22 | 90.26 ▲41.69 |
Pages /wp-admin/admin.php?page=wps_pages | 1,026 | 2.03 | 26.75 | 41.00 |
Settings /wp-admin/admin.php?page=wps_settings | 1,155 | 1.71 | 24.18 | 34.16 |
Categories /wp-admin/admin.php?page=wps_categories | 1,032 | 2.02 | 25.05 | 24.37 |
WP Subdomains /wp-admin/admin.php?page=wps | 1,091 | 2.02 | 23.07 | 27.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/subdomains.php+87
Methods with the same name as their class will not be constructors in a future version of PHP; WpsPlugin has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/subdomains.php+87
Methods with the same name as their class will not be constructors in a future version of PHP; WpsPlugin has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/classes.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; WpsSubDomains has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/classes.php+240
Methods with the same name as their class will not be constructors in a future version of PHP; WpsSubDomain has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/classes.php+417
Methods with the same name as their class will not be constructors in a future version of PHP; WpsSubDomainCat has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/classes.php+580
Methods with the same name as their class will not be constructors in a future version of PHP; WpsSubDomainPage has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/classes.php+660
Methods with the same name as their class will not be constructors in a future version of PHP; WpsSubDomainAuthor has a deprecated constructor
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-content/plugins/wp-subdomains-revisited/plugin/actions.php+64
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WpsSitelistWidget::init() should not be called statically
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > User deprecated in wp-includes/functions.php+5453
Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WpsCategoriesWidget::init() should not be called statically
- 44 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > 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.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/admin.php?page=wps_categories
- > Notice in wp-content/plugins/wp-subdomains-revisited/plugin/admin.php+277
Undefined index: subdomains
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-subdomains-revisited/subdomains.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subdomains-revisited/widgets/sitelist.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subdomains-revisited/widgets/categories.php:132
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wps
- > Network (severe)
http://www.lontongcorp.com/wp-content/plugins/simple-lazyload/blank_1x1.gif - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WP Subdomains -> Settings), #2 (Category Interface), #3 (Pages Editor widget interface)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-subdomains-revisited ===
)
wp-subdomains-revisited/subdomains.php 92% from 13 tests
The main PHP script in "WP Subdomains (Revisited)" version 0.9.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-subdomains-revisited.php" instead of "subdomains.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,247 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 526 | 300 | 2,040 |
PO File | 1 | 98 | 123 | 207 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.71KB | 18.01KB | ▼ 8.65% |
views/Authors.png | 6.80KB | 6.63KB | ▼ 2.56% |
views/Folders.png | 3.26KB | 3.30KB | 0.00% |
views/Pages.png | 6.34KB | 6.06KB | ▼ 4.36% |
views/more.png | 1.77KB | 1.69KB | ▼ 4.09% |