Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.41ms] Passed 4 tests
Server-side resources used by Wp Subcribe Author
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.38 ▼34.60 |
Dashboard /wp-admin | 2.05 ▼1.26 | 10.83 ▼37.38 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.45 ▼39.81 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.82 ▼93.84 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.54 ▼28.83 |
Subscribe Auhtor /wp-admin/options-general.php?page=wpsa_plugin_options | 2.05 | 5.08 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpsa_subscribe_author |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
wpsa_subscribe_author_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Wp Subcribe Author
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲164 | 13.47 ▼1.16 | 15.54 ▲13.84 | 46.10 ▲2.32 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.03 | 83.84 ▼6.94 | 41.86 ▲2.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.01 | 34.45 ▼0.83 | 34.11 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.10 ▼0.14 | 673.42 ▲16.06 | 59.70 ▲13.47 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.06 | 96.23 ▼10.49 | 42.01 ▼6.09 |
Subscribe Auhtor /wp-admin/options-general.php?page=wpsa_plugin_options | 826 | 2.17 | 25.36 | 27.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
Function create_function() is deprecated
- The uninstall procedure failed, leaving 1 table in the database
- wp_wpsa_subscribe_author
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- wpsa_subscribe_author_db_version
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
- > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subscribe-author/classes/settings.php:212
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subscribe-author/wpsa-ajax.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: email, subscription, notification, author, posts...
wp-subscribe-author/wp-subscribe-author.php 92% from 13 tests
"Wp Subcribe Author" version 1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,131 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 396 | 356 | 767 |
JavaScript | 4 | 56 | 52 | 235 |
CSS | 2 | 16 | 2 | 96 |
PO File | 1 | 7 | 9 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.55% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.02KB | 12.04KB | ▼ 59.89% |