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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.38ms] Passed 4 tests
A check of server-side resources used by BF Modal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 44.97 ▲4.76 |
Dashboard /wp-admin | 3.53 ▲0.23 | 53.16 ▲3.41 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 55.97 ▲7.50 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 87.98 ▼10.14 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 42.37 ▲7.98 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for BF Modal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.36 ▼1.00 | 4.17 ▲2.49 | 39.87 ▼0.27 |
Dashboard /wp-admin | 2,222 ▲37 | 4.86 ▼1.01 | 107.33 ▲2.23 | 41.85 ▼1.78 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▲0.02 | 39.02 ▼1.12 | 33.88 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.28 ▲0.09 | 672.64 ▲9.90 | 59.10 ▲8.80 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.27 ▲0.06 | 96.68 ▼0.69 | 44.78 ▼0.54 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bf-modal/static/icons/icon-close.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bf-modal/templates/admin/components/main-form.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bf-modal/templates/modal.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/bf-modal/templates/admin/components/switcher.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/bf-modal/templates/admin/pages/modal-meta-box.php:7
- > PHP Fatal error
Uncaught Error: Class 'bfModalPlugin\\providers\\BFAdminOptionsProvider' not found in wp-content/plugins/bf-modal/templates/admin/main.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bf-modal/templates/admin/components/other-options-form.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("/")
bf-modal/bf-modal.php Passed 13 tests
The main PHP file in "BF Modal" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
26 characters long description:
Plugin for creating modals
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,387 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 9,456 |
PHP | 43 | 410 | 454 | 1,506 |
JavaScript | 9 | 64 | 62 | 330 |
Sass | 2 | 5 | 0 | 48 |
Markdown | 1 | 24 | 0 | 46 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 7.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 27 | 29.35% |
▷ Public methods | 86 | 93.48% |
▷ Protected methods | 1 | 1.09% |
▷ Private methods | 5 | 5.43% |
Functions | 11 | |
▷ Named functions | 6 | 54.55% |
▷ Anonymous functions | 5 | 45.45% |
Constants | 19 | |
▷ Global constants | 4 | 21.05% |
▷ Class constants | 15 | 78.95% |
▷ Public constants | 15 | 100.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