Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.07ms] Passed 4 tests
An overview of server-side resources used by WPToggler
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 42.12 ▲4.33 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.35 ▼19.08 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.06 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 94.20 ▼0.70 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.34 ▲0.40 |
WPToggler /wp-admin/tools.php?page=WPTogglerAdmin | 3.24 | 31.53 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 14 new options
New WordPress options |
---|
WPToggler_switched_to_true |
WPToggler_option_label_false |
widget_recent-comments |
widget_theysaidso_widget |
WPToggler_description |
WPToggler_MESSAGES |
WPToggler_option_label |
WPToggler_title |
db_upgraded |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WPToggler
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲95 | 13.65 ▼0.65 | 1.56 ▼0.35 | 40.59 ▼1.29 |
Dashboard /wp-admin | 2,269 ▲81 | 5.82 ▼0.04 | 95.80 ▼0.52 | 39.23 ▼3.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.01 | 40.07 ▲0.09 | 33.12 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 18.43 ▲0.88 | 636.67 ▼44.73 | 56.19 ▼4.32 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.00 | 97.23 ▼3.21 | 41.77 ▼2.64 |
WPToggler /wp-admin/tools.php?page=WPTogglerAdmin | 828 | 2.06 | 22.64 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- 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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wptoggler/includes/main.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wptoggler/includes/main.php:65
- > PHP Fatal error
Uncaught Error: Class 'WPToggler' not found in wp-content/plugins/wptoggler/includes/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: toggle
wptoggler/WPToggler.php 92% from 13 tests
This is the main PHP file of "WPToggler" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wptoggler.php" instead of "WPToggler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin206 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 26 | 179 |
Markdown | 1 | 15 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 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 | 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
No PNG images were found in this plugin