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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.60ms] Passed 4 tests
Server-side resources used by Navigation Toggle 4 Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.45 ▼8.57 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.36 ▼5.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 69.29 ▲18.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.22 ▼4.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 36.28 ▲0.63 |
Nav-Toggle 4 Divi /wp-admin/options-general.php?page=clx-dnt | 3.21 | 33.05 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Navigation Toggle 4 Divi: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.18 ▼1.20 | 1.68 ▼0.38 | 40.04 ▼3.38 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.06 | 114.36 ▼1.24 | 43.92 ▲6.35 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.06 | 42.11 ▲1.58 | 34.42 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.20 ▲0.68 | 603.05 ▼29.14 | 51.21 ▼16.86 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.24 ▲0.01 | 97.70 ▼2.66 | 42.07 ▼2.90 |
Nav-Toggle 4 Divi /wp-admin/options-general.php?page=clx-dnt | 791 | 2.18 | 26.98 | 30.99 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/navigation-toggle-4-divi/navigation-toggle-4-divi.php:28
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== navigation-toggle-4-divi ===
)
navigation-toggle-4-divi/navigation-toggle-4-divi.php Passed 13 tests
"Navigation Toggle 4 Divi" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Toggle navigation menu when the user clicks outside.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin50 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 24 | 50 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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
There were not PNG files found in your plugin