Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.38ms] Passed 4 tests
Server-side resources used by Debug Switch
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.60 ▼1.58 |
Dashboard /wp-admin | 3.32 ▲0.01 | 59.28 ▲6.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.75 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.56 ▼8.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.65 ▲5.23 |
PHP Info /wp-admin/tools.php?page=php-info | 3.71 | 55.82 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Debug Switch: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.17 ▼0.23 | 1.75 ▼0.21 | 43.43 ▼0.64 |
Dashboard /wp-admin | 2,211 ▲37 | 5.62 ▲0.01 | 87.13 ▼12.50 | 44.46 ▲0.99 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▼0.04 | 34.85 ▼2.69 | 35.00 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.10 ▲0.02 | 638.38 ▼55.66 | 55.76 ▼8.08 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.02 | 102.24 ▲0.48 | 48.43 ▲5.37 |
PHP Info /wp-admin/tools.php?page=php-info | 6,209 | 1.67 | 30.55 | 77.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: errors, info, debug, php
debug-switch/debug-switch.php Passed 13 tests
This is the main PHP file of "Debug Switch" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
The fastest and easiest way to switch debug mode on/off and view PHP info directly from the admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected68 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 36 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 6 | |
▷ Named functions | 6 | 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 files were detected