Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by WP Easy Toggles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.57 ▼10.03 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.83 ▼2.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.88 ▼5.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.93 ▲1.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.97 ▲1.14 |
WP Easy Toggles /wp-admin/options-general.php?page=haqwpet-settings | 3.20 | 29.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Easy Toggles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.25 ▼0.13 | 2.36 ▲0.64 | 40.10 ▼5.19 |
Dashboard /wp-admin | 2,196 ▲19 | 5.57 ▼0.15 | 83.08 ▼26.53 | 43.63 ▼9.58 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 33.03 ▼9.81 | 35.21 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,557 ▲17 | 18.41 ▼4.54 | 608.24 ▲2.57 | 53.31 ▲7.95 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.01 | 100.82 ▼1.07 | 48.28 ▲3.61 |
WP Easy Toggles /wp-admin/options-general.php?page=haqwpet-settings | 788 | 1.98 | 33.51 | 34.38 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-easy-toggles/wp-easy-toggles.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: widgets toggle, wysiwyg editor toggle, toggles, shortcode toggle
wp-easy-toggles/wp-easy-toggles.php Passed 13 tests
The principal PHP file in "WP Easy Toggles" v. 1.5.0 is loaded by WordPress automatically on each request
62 characters long description:
WP Easy Toggles plugin add toggle functionality on your theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin81 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 9 | 41 |
CSS | 1 | 3 | 2 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/togal-plus.png | 0.50KB | 0.62KB | 0.00% |
assets/togal-minus.png | 0.48KB | 0.61KB | 0.00% |