Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/website-openclosed-toggle/website-openclosed-toggle.php+38
Only variables should be passed by reference
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.26ms] Passed 4 tests
An overview of server-side resources used by Website Open/Closed Toggle
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.45 ▼36.79 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.63 ▼44.14 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.51 ▼38.38 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.12 ▼85.74 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.35 ▼29.06 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
rs_woct_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Website Open/Closed Toggle
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.37 ▼1.29 | 1.99 ▲0.18 | 42.80 ▼5.70 |
Dashboard /wp-admin | 2,215 ▲27 | 5.77 ▼0.10 | 109.78 ▼8.65 | 36.76 ▼10.98 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 1.99 ▼0.00 | 40.58 ▲0.09 | 35.70 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 18.56 ▼5.01 | 650.08 ▲31.29 | 52.93 ▼12.70 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▲0.01 | 97.25 ▼5.00 | 42.56 ▼2.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/website-openclosed-toggle/website-openclosed-toggle.php+38
Only variables should be passed by reference
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- rs_woct_settings
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #3 in website-openclosed-toggle/assets to your readme.txt
website-openclosed-toggle/website-openclosed-toggle.php Passed 13 tests
The primary PHP file in "Website Open/Closed Toggle" version 0.3.8 is used by WordPress to initiate all plugin functionality
115 characters long description:
This plugin allows you to easily open and close your website and display a custom message or HTML page when closed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin294 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 35 | 22 | 292 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected