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.02MB] [CPU: ▼7.14ms] Passed 4 tests
Analyzing server-side resources used by CBD Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.75 ▼2.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.43 ▼4.66 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.34 ▼4.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.48 ▼16.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.87 ▼0.82 |
CBD settings /wp-admin/options-general.php?page=cbd-setting | 3.21 | 33.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by CBD Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.38 ▲0.03 | 1.81 ▲0.30 | 37.38 ▼0.26 |
Dashboard /wp-admin | 2,199 ▲22 | 5.53 ▼0.15 | 82.18 ▼4.82 | 39.18 ▼6.71 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.97 ▼0.01 | 33.65 ▼4.02 | 32.31 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.37 ▼4.54 | 646.38 ▼37.08 | 65.60 ▲13.87 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.15 ▼0.03 | 94.93 ▲0.74 | 40.75 ▲0.31 |
CBD settings /wp-admin/options-general.php?page=cbd-setting | 859 | 2.00 | 23.84 | 32.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cbd-calculator/include/settings.php:167
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cbd-calculator/include/email.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cbd-calculator/include/shortcode.php:100
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: shortcode, cbd calculator, converter, cbd converter, calculator...
cbd-calculator/cbd-calcultor.php 85% from 13 tests
This is the main PHP file of "CBD Calculator" 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
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cbd-calculator.php" instead of "cbd-calcultor.php")
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
Good job! No executable or dangerous file extensions detected809 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 74 | 53 | 637 |
JavaScript | 1 | 33 | 3 | 139 |
CSS | 1 | 8 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin