Benchmarks
Plugin footprint Passed 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.15MB] [CPU: ▼139.35ms] Passed 4 tests
Server-side resources used by RabbitBuilder Global Central JS CSS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 35.80 ▲1.75 |
Dashboard /wp-admin | 3.22 ▲0.16 | 45.27 ▲1.23 |
Posts /wp-admin/edit.php | 3.33 ▲0.22 | 48.07 ▲6.96 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.14 | 92.57 ▼558.57 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 33.02 ▼1.81 |
Server storage [IO: ▲8.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 473 new files
Database: 1 new table, no new options
New tables |
---|
wp_rabbitbuilder_js_css |
Browser metrics Passed 4 tests
RabbitBuilder Global Central JS CSS: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 16.03 ▲0.49 | 7.15 ▼3.18 | 45.14 ▼6.68 |
Dashboard /wp-admin | 2,987 ▲58 | 5.89 ▼0.06 | 137.36 ▼2.88 | 108.46 ▼2.21 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.72 ▲0.02 | 61.22 ▼3.26 | 78.05 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,517 ▼540 | 18.51 ▼0.92 | 354.84 ▼25.64 | 104.43 ▲0.58 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.03 ▲0.03 | 139.78 ▼11.51 | 117.36 ▼5.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/page-item.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/plugin.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/page-items.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/list-table-items.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/activator.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/inc/deactivator.php
- > /wp-content/plugins/rabbitbuilder-global-central-js-css/rabbitbuilder-js-css.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/CompilerException.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Nested.php:25
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/RangeException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/ServerException.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Compact.php:24
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Crunched.php:24
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Formatter/Debug.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/rabbitbuilder-global-central-js-css/inc/lib/scssphp/src/Exception/ParserException.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: scss preprocessors, elementor addons extension module, custom js, custom css html, custom code
rabbitbuilder-global-central-js-css/rabbitbuilder-js-css.php 69% from 13 tests
"RabbitBuilder Global Central JS CSS" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rabbitbuilder-global-central-js-css.php" instead of "rabbitbuilder-js-css.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 493 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin17,869 lines of code in 454 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 3,396 | 4,146 | 11,456 |
JavaScript | 404 | 457 | 19 | 6,142 |
Markdown | 3 | 63 | 0 | 109 |
SVG | 1 | 0 | 0 | 78 |
JSON | 1 | 0 | 0 | 65 |
CSS | 3 | 2 | 6 | 13 |
XML | 1 | 1 | 5 | 6 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,349)
- Method cyclomatic complexity should be reduced to less than 100 (currently 201)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 72.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,349.00 |
Average method complexity | 6.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 201.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 2 | 5.88% |
▷ Concrete classes | 32 | 94.12% |
▷ Final classes | 1 | 3.12% |
Methods | 487 | |
▷ Static methods | 22 | 4.52% |
▷ Public methods | 161 | 33.06% |
▷ Protected methods | 305 | 62.63% |
▷ Private methods | 21 | 4.31% |
Functions | 30 | |
▷ Named functions | 11 | 36.67% |
▷ Anonymous functions | 19 | 63.33% |
Constants | 86 | |
▷ Global constants | 15 | 17.44% |
▷ Class constants | 71 | 82.56% |
▷ Public constants | 71 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin