Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.99ms] Passed 4 tests
Analyzing server-side resources used by WP Designer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.50 ▲2.04 | 64.81 ▲26.37 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.36 ▼6.11 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.43 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.22 ▼14.42 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.67 ▲5.46 |
WP Designer /wp-admin/options-general.php?page=wp-designer | 3.27 | 35.85 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 173 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
wpd-settings |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Designer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▼0.30 | 2.00 ▼0.04 | 40.57 ▼0.47 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.12 | 86.86 ▼4.74 | 41.62 ▼2.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 36.64 ▼0.13 | 36.92 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,529 ▼11 | 17.65 ▼5.60 | 686.49 ▲52.10 | 54.68 ▼0.50 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.02 | 112.51 ▲7.91 | 48.05 ▲2.51 |
WP Designer /wp-admin/options-general.php?page=wp-designer | 880 | 2.02 | 25.34 | 49.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- wpd-settings
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-designer/lib/scssphp/tests/ExceptionTest.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-designer/wp-designer.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-designer/lib/scssphp/tests/ApiTest.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-designer/lib/scssphp/tests/Util/PathTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-designer/lib/scssphp/src/Formatter/Expanded.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-designer/lib/scssphp/tests/FrameworkTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-designer/lib/scssphp/tests/Base64VLQTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-designer/lib/scssphp/src/Formatter/Compressed.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/wp-designer/lib/scssphp/src/Exception/RangeException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/wp-designer/lib/scssphp/src/Logger/QuietLogger.php:18
- > 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 Passed 29 tests
readme.txt Passed 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
7 plugin tags: customizer, wordpress designer, wordpress customizations, wp customizer, developer...
wp-designer/wp-designer.php Passed 13 tests
"WP Designer" version 2.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
This plugin helps you to customize any WordPress site regardless of the theme you use.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected21,036 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 3,268 | 4,538 | 11,383 |
Sass | 45 | 1,254 | 155 | 4,530 |
CSS | 43 | 17 | 142 | 3,627 |
Markdown | 14 | 331 | 0 | 1,159 |
JSON | 2 | 0 | 0 | 96 |
YAML | 2 | 16 | 9 | 90 |
HTML | 4 | 8 | 0 | 73 |
XML | 2 | 5 | 6 | 31 |
make | 2 | 11 | 1 | 28 |
Bourne Shell | 1 | 4 | 3 | 19 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,400)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 61.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,400.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 2 | 5.00% |
▷ Concrete classes | 38 | 95.00% |
▷ Final classes | 25 | 65.79% |
Methods | 525 | |
▷ Static methods | 38 | 7.24% |
▷ Public methods | 169 | 32.19% |
▷ Protected methods | 20 | 3.81% |
▷ Private methods | 336 | 64.00% |
Functions | 33 | |
▷ Named functions | 2 | 6.06% |
▷ Anonymous functions | 31 | 93.94% |
Constants | 73 | |
▷ Global constants | 10 | 13.70% |
▷ Class constants | 63 | 86.30% |
▷ Public constants | 63 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/scssphp/docs/img/tile.png | 0.24KB | 0.16KB | ▼ 31.97% |