Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php+169
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼56.69ms] Passed 4 tests
An overview of server-side resources used by Subscribe Button by AddToAny
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.32 ▼38.65 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.66 ▼57.40 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.73 ▼41.80 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.92 ▼88.91 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.12 ▼29.43 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_add_to_any_subscribe_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Subscribe Button by AddToAny
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.79 ▲0.41 | 1.74 ▼0.15 | 43.10 ▼3.77 |
Dashboard /wp-admin | 2,207 ▲28 | 4.82 ▼1.04 | 109.26 ▲0.24 | 39.69 ▼1.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.02 | 36.94 ▼2.78 | 32.70 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.39 ▲0.15 | 690.59 ▲4.41 | 53.38 ▲0.74 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▼0.05 | 103.54 ▼3.04 | 48.95 ▲1.23 |
Subscribe Buttons /wp-admin/add-to-any-subscribe.php | 26 | 0.44 | 0.15 | 18.33 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php+169
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_add_to_any_subscribe_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/add-to-any-subscribe.php
- > Network (severe)
wp-admin/add-to-any-subscribe.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (This is the AddToAny Subscribe button), #2 (This is the drop-down menu that appears instantly when visitors move the mouse over the Subscribe button), #3 (This is the drop-down menu showing the services available to the user within the Subscribe menu. Services are constantly added/updated.)
add-to-any-subscribe/add-to-any-subscribe.php 85% from 13 tests
The principal PHP file in "Subscribe Button by AddToAny" v. .9.10.0... is loaded by WordPress automatically on each request
You should first fix the following items:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of ".9.10.0...")
- Description: The description should be shorter than 140 characters (currently 192 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,136 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 344 | 408 | 759 |
PHP | 1 | 77 | 35 | 377 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
subscribe_171_16.png | 1.59KB | 1.46KB | ▼ 8.25% |
favicon.png | 0.26KB | 0.25KB | ▼ 6.30% |
screenshot-1.png | 1.59KB | 1.46KB | ▼ 8.25% |
subscribe_120_16.png | 1.76KB | 1.38KB | ▼ 21.33% |
subscribe_16_16.png | 0.70KB | 0.89KB | 0.00% |