Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.08ms] Passed 4 tests
Server-side resources used by RS Twitter Follow Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.86 ▼6.13 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.17 ▼0.62 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 51.47 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.20 ▼16.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.85 ▼5.34 |
RS Twitter Follow Popup /wp-admin/options-general.php?page=rs-twitter-follow-popup | 3.25 | 37.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
twitter_page |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
popup_show_after |
twitter_widget_id |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for RS Twitter Follow Popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.50 ▼1.05 | 10.95 ▲9.01 | 40.18 ▼6.56 |
Dashboard /wp-admin | 2,206 ▲42 | 5.58 ▼0.07 | 97.34 ▼17.73 | 36.67 ▼6.10 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.00 | 39.46 ▼0.09 | 35.54 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.17 ▲0.08 | 675.25 ▼14.29 | 56.64 ▲4.87 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.20 ▲0.05 | 101.47 ▼14.48 | 47.05 ▼2.07 |
RS Twitter Follow Popup /wp-admin/options-general.php?page=rs-twitter-follow-popup | 844 | 2.03 | 26.09 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- twitter_widget_id
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- twitter_page
- theysaidso_admin_options
- popup_show_after
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
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rs-twitter-follow-popup
- > Notice in wp-content/plugins/rs-twitter-follow-popup/admin/partials/rs-twitter-follow-popup-admin-display.php+28
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rs-twitter-follow-popup/admin/partials/rs-twitter-follow-popup-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rs-twitter-follow-popup/public/partials/rs-twitter-follow-popup-public-display.php:18
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== rs-twitter-follow-popup ===
)
rs-twitter-follow-popup/rs-twitter-follow-popup.php Passed 13 tests
The main PHP file in "RS Twitter Follow Popup" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Increase your twitter followers with this simple Wordpress plugin.
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 plugin297 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 577 | 288 |
JavaScript | 2 | 6 | 62 | 8 |
CSS | 2 | 0 | 11 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin