Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▼4.09ms] Passed 4 tests
An overview of server-side resources used by Footer Putter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 40.69 ▼0.23 |
Dashboard /wp-admin | 4.13 ▲0.83 | 49.35 ▲3.13 |
Posts /wp-admin/edit.php | 4.18 ▲0.83 | 48.68 ▼4.12 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 86.09 ▼15.12 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 40.25 ▲4.19 |
Dashboard /wp-admin/admin.php?page=footer-putter | 3.99 | 36.95 |
Footer /wp-admin/admin.php?page=footer-putter-footer | 3.96 | 35.52 |
Trademarks /wp-admin/admin.php?page=footer-putter-trademarks | 3.98 | 31.62 |
Add New /wp-admin/link-add.php | 3.97 | 53.71 |
Credits /wp-admin/admin.php?page=footer-putter-credits | 4.00 | 37.89 |
All Links /wp-admin/link-manager.php | 4.01 | 34.22 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 3.99 | 38.10 |
Server storage [IO: ▲0.24MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 9 new options
New WordPress options |
---|
footer_putter_plugin_activation |
widget_recent-comments |
widget_footer_copyright |
widget_footer_trademarks |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Footer Putter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲125 | 13.27 ▼1.11 | 1.65 ▼0.22 | 39.85 ▼6.13 |
Dashboard /wp-admin | 2,272 ▲81 | 5.04 ▼0.01 | 99.46 ▼9.32 | 37.59 ▼4.44 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.02 ▼0.03 | 37.31 ▲0.69 | 37.35 ▲4.13 |
Add New Post /wp-admin/post-new.php | 1,587 ▲51 | 23.16 ▲0.18 | 690.98 ▲85.08 | 59.62 ▼11.95 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.19 ▲0.02 | 97.55 ▲0.15 | 42.07 ▼0.39 |
Dashboard /wp-admin/admin.php?page=footer-putter | 1,449 | 2.46 | 50.09 | 37.10 |
Footer /wp-admin/admin.php?page=footer-putter-footer | 1,256 | 2.50 | 49.54 | 37.16 |
Trademarks /wp-admin/admin.php?page=footer-putter-trademarks | 1,123 | 2.29 | 51.68 | 65.24 |
Add New /wp-admin/link-add.php | 1,682 | 2.23 | 48.39 | 33.26 |
Credits /wp-admin/admin.php?page=footer-putter-credits | 1,365 | 2.42 | 48.44 | 37.37 |
All Links /wp-admin/link-manager.php | 1,091 | 1.72 | 22.98 | 28.14 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,334 | 2.14 | 26.33 | 29.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- can_compress_scripts
- widget_footer_copyright
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- footer_putter_plugin_activation
- widget_footer_trademarks
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=footer-putter-footer
- > Notice in wp-content/plugins/footer-putter/classes/class-footer-admin.php+88
Undefined index: hide_wordpress
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
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/footer-putter/classes/class-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-footer.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Widget' not found in wp-content/plugins/footer-putter/classes/class-trademarks-widgets.php:3
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-trademarks-admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-news.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Widget' not found in wp-content/plugins/footer-putter/classes/class-credits-widgets.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-dashboard.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-credits-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Module' not found in wp-content/plugins/footer-putter/classes/class-credits.php:2
- > PHP Fatal error
Uncaught Error: Class 'Footer_Putter_Admin' not found in wp-content/plugins/footer-putter/classes/class-footer-admin.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=footer-putter-credits
- > Network (severe)
wp-content/plugins/footer-putter/styles/metabox.css?ver=1.17 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6, #7 in footer-putter/assets to your readme.txt
footer-putter/main.php 92% from 13 tests
The primary PHP file in "Footer Putter" version 1.17 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("footer-putter.php" instead of "main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,360 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 587 | 50 | 3,147 |
CSS | 4 | 13 | 0 | 152 |
JavaScript | 3 | 2 | 3 | 61 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 175)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 41.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 175.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 3 | 17.65% |
▷ Concrete classes | 14 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 318 | |
▷ Static methods | 1 | 0.31% |
▷ Public methods | 294 | 92.45% |
▷ Protected methods | 1 | 0.31% |
▷ Private methods | 23 | 7.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 10 | 55.56% |
▷ Class constants | 8 | 44.44% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-16.png | 0.46KB | 0.73KB | 0.00% |
styles/images/icon-32.png | 2.96KB | 1.74KB | ▼ 41.22% |
images/logo.png | 25.92KB | 21.41KB | ▼ 17.42% |
images/icon-32.png | 2.96KB | 1.74KB | ▼ 41.22% |