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.06MB] [CPU: ▲0.23ms] Passed 4 tests
An overview of server-side resources used by MantraBrain Starter Sites | MantraBrain Theme Demo Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.96 ▼4.55 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.14 ▼0.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.78 ▲5.79 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.73 ▲3.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.68 ▲2.10 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
MantraBrain Starter Sites | MantraBrain Theme Demo Importer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.36 ▼1.01 | 1.72 ▼0.06 | 46.30 ▲4.35 |
Dashboard /wp-admin | 2,223 ▲32 | 4.86 ▼1.04 | 108.61 ▲4.59 | 42.03 ▲1.31 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 1.99 ▼0.02 | 40.27 ▲5.19 | 36.43 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▲6 | 17.76 ▼5.13 | 663.31 ▼2.98 | 62.55 ▲8.96 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.25 ▲0.05 | 110.66 ▲11.42 | 45.34 ▼3.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/mantrabrain-starter-sites/includes/importers/customize/class-oc-customize-demo-importer-setting.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mantrabrain-starter-sites/includes/admin/dashboard/class-mantrabrain-admin-dashboard.php:122
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: demo import, mantrabrain, starter sites
mantrabrain-starter-sites/mantrabrain-starter-sites.php Passed 13 tests
The main PHP file in "MantraBrain Starter Sites | MantraBrain Theme Demo Importer" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Starter sites / Demo importer for Mantra Brain Themes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,968 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 854 | 550 | 3,245 |
PHP | 15 | 835 | 923 | 3,167 |
CSS | 3 | 74 | 1 | 1,556 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 46.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 194.00 |
Average method complexity | 6.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 2 | 15.38% |
Methods | 110 | |
▷ Static methods | 13 | 11.82% |
▷ Public methods | 98 | 89.09% |
▷ Protected methods | 1 | 0.91% |
▷ Private methods | 11 | 10.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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