Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.74MB] [CPU: ▲23.29ms] Passed 4 tests
Analyzing server-side resources used by WOW Best WP Lightweight
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.23 ▲1.77 | 87.93 ▲43.74 |
Dashboard /wp-admin | 5.09 ▲1.75 | 81.95 ▲12.34 |
Posts /wp-admin/edit.php | 5.15 ▲1.79 | 83.08 ▲27.61 |
Add New Post /wp-admin/post-new.php | 7.63 ▲1.74 | 121.94 ▲13.88 |
Media Library /wp-admin/upload.php | 4.93 ▲1.70 | 80.99 ▲39.34 |
Server storage [IO: ▲8.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 582 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WOW Best WP Lightweight
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,108 ▲347 | 18.53 ▲4.30 | 1.78 ▲0.02 | 40.09 ▼3.40 |
Dashboard /wp-admin | 2,521 ▲318 | 9.25 ▲4.38 | 177.97 ▲70.67 | 39.69 ▼3.22 |
Posts /wp-admin/edit.php | 2,426 ▲326 | 6.23 ▲4.21 | 79.90 ▲42.03 | 31.57 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,867 ▲335 | 22.17 ▼1.25 | 653.62 ▼38.46 | 37.32 ▼19.16 |
Media Library /wp-admin/upload.php | 1,560 ▲163 | 6.54 ▲2.28 | 112.25 ▼4.69 | 44.37 ▼3.16 |
WP Lightweight /wp-admin/crb_carbon_fields_container_best_wp_lightweight.php | 26 | 0.44 | 0.13 | 15.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 215× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/best-wp-lightweight/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/best-wp-lightweight/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
- > PHP Notice
Undefined variable: plural in wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/best-wp-lightweight/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/best-wp-lightweight/vendor/htmlburger/carbon-fields/core/Field/Html_Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/best-wp-lightweight/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/best-wp-lightweight/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/crb_carbon_fields_container_best_wp_lightweight.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_best_wp_lightweight.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in best-wp-lightweight/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== best-wp-lightweight ===
) - Tags: You are using too many tags: 36 tag instead of maximum 10
best-wp-lightweight/nguyen-app.php 85% from 13 tests
The entry point to "WOW Best WP Lightweight" version 2.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("best-wp-lightweight.php" instead of "nguyen-app.php")
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 plugin31,153 lines of code in 524 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 171 | 5,188 | 8,459 | 12,933 |
PHP | 258 | 2,953 | 7,457 | 11,499 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 49 | 342 | 1 | 1,896 |
CSS | 9 | 329 | 1,139 | 1,779 |
JSON | 5 | 0 | 0 | 658 |
YAML | 3 | 30 | 3 | 118 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 232 | |
▷ Abstract classes | 12 | 5.17% |
▷ Concrete classes | 220 | 94.83% |
▷ Final classes | 1 | 0.45% |
Methods | 1,063 | |
▷ Static methods | 92 | 8.65% |
▷ Public methods | 842 | 79.21% |
▷ Protected methods | 199 | 18.72% |
▷ Private methods | 22 | 2.07% |
Functions | 116 | |
▷ Named functions | 26 | 22.41% |
▷ Anonymous functions | 90 | 77.59% |
Constants | 36 | |
▷ Global constants | 9 | 25.00% |
▷ Class constants | 27 | 75.00% |
▷ Public constants | 27 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/icon.png | 10.50KB | 5.29KB | ▼ 49.68% |
admin/assets/img/logo.png | 14.66KB | 7.71KB | ▼ 47.40% |