Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.23ms] Passed 4 tests
An overview of server-side resources used by rtWidgets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.30 ▼1.79 |
Dashboard /wp-admin | 3.55 ▲0.25 | 51.46 ▲3.42 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.23 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 94.91 ▼4.29 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 36.44 ▲3.85 |
rtWidgets Options /wp-admin/options-general.php?page=rtwidgets-options | 4.90 | 392.02 |
Server storage [IO: ▲0.16MB] [DB: ▲0.15MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_rtw_comments_widget |
widget_rtw_multiple_nav_widget |
widget_recent-comments |
widget_rtw_category_widget |
widget_theysaidso_widget |
widget_rtw_subscribe_widget_container |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
rtWidgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.26 ▼1.30 | 1.91 ▲0.10 | 39.20 ▼7.29 |
Dashboard /wp-admin | 2,210 ▲22 | 5.08 ▼0.01 | 107.83 ▼13.49 | 42.22 ▼0.50 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.05 ▲0.05 | 40.71 ▲3.37 | 35.75 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 18.22 ▼5.05 | 617.24 ▼26.95 | 64.24 ▲1.30 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.07 | 94.22 ▼6.80 | 42.48 ▼0.74 |
rtWidgets Options /wp-admin/options-general.php?page=rtwidgets-options | 1,187 | 3.36 | 67.46 | 39.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.15MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_rtw_category_widget
- widget_theysaidso_widget
- widget_rtw_subscribe_widget_container
- widget_recent-comments
- theysaidso_admin_options
- widget_rtw_multiple_nav_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_rtw_comments_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)
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
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rtwidgets/lib/rtwidgets-category.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/rtwidgets/admin/rtwidgets-options.php:225
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rtwidgets/lib/rtwidgets-multiple-menu.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rtwidgets/lib/rtwidgets-subscribe.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rtwidgets/lib/rtwidgets-comments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rtwidgets/rtwidgets-main.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=rtwidgets-options
- > Network (severe)
https://static.ak.fbcdn.net/connect.php/js/FB.Share?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Tested up to: Invalid plugin version format
- Requires at least: Invalid plugin version format
rtwidgets/rtwidgets-main.php 92% from 13 tests
"rtWidgets" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rtwidgets.php" instead of "rtwidgets-main.php")
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,645 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 104 | 253 | 781 |
CSS | 8 | 30 | 62 | 281 |
PO File | 1 | 81 | 85 | 194 |
JSON | 2 | 0 | 0 | 180 |
Sass | 5 | 18 | 21 | 130 |
SVG | 1 | 0 | 0 | 37 |
JavaScript | 2 | 7 | 14 | 35 |
Ruby | 1 | 12 | 16 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 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 | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin