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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; EasyRotatorSocialAddOn has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼63.04ms] Passed 4 tests
Server-side resources used by EasyRotator Social Add-On
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.10 ▼41.23 |
Dashboard /wp-admin | 2.07 ▼1.27 | 6.35 ▼62.75 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.73 ▼38.42 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.54 ▼109.76 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.19 ▼29.68 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EasyRotator Social Add-On
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 14.45 ▼0.23 | 1.86 ▲0.14 | 43.76 ▼0.25 |
Dashboard /wp-admin | 2,220 ▲20 | 4.87 ▼1.02 | 104.63 ▼1.09 | 40.98 ▲0.94 |
Posts /wp-admin/edit.php | 2,099 ▼4 | 2.00 ▼0.01 | 38.03 ▼5.49 | 35.38 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,542 ▼12 | 23.28 ▲5.17 | 680.99 ▲54.86 | 63.76 ▲4.27 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.32 ▲0.00 | 96.10 ▼15.37 | 43.12 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; EasyRotatorSocialAddOn has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easyrotator-social-add-on/easyrotator-social-addon.php:44
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (A rotator with social sharing buttons enabled)
easyrotator-social-add-on/easyrotator-social-addon.php 92% from 13 tests
"EasyRotator Social Add-On" version 1.0.0'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:
- Main file name: Name the main plugin file the same as the plugin slug ("easyrotator-social-add-on.php" instead of "easyrotator-social-addon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected180 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 26 | 33 | 152 |
PHP | 1 | 17 | 30 | 28 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
There are no PNG files in this plugin