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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.93ms] Passed 4 tests
An overview of server-side resources used by CLC Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.24 ▲2.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.75 ▼3.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.26 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.47 ▼19.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.78 ▲4.12 |
CLC Products /wp-admin/options-general.php?page=clc-products | 3.18 | 29.33 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CLC Products
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.22 ▼1.43 | 5.21 ▲3.63 | 43.91 ▲3.80 |
Dashboard /wp-admin | 2,210 ▲19 | 5.79 ▲0.90 | 99.63 ▼0.88 | 39.67 ▼1.65 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.03 | 40.78 ▲4.10 | 32.35 ▲2.25 |
Add New Post /wp-admin/post-new.php | 6,185 ▲4,666 | 26.23 ▲3.02 | 912.79 ▲203.02 | 66.19 ▲13.05 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.18 ▼0.05 | 94.39 ▼43.27 | 41.98 ▼15.77 |
CLC Products /wp-admin/options-general.php?page=clc-products | 940 | 2.03 | 23.87 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=clc-products
- > Notice in wp-content/plugins/clc-products/clc_product.php+484
Trying to access array offset on value of type bool
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clc-products/clc_product.php:498
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
2 plugin tags: products, books
clc-products/clc_product.php 92% from 13 tests
Analyzing the main PHP file in "CLC Products" version 1.2.4
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("clc-products.php" instead of "clc_product.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin16,281 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 912 | 61 | 4,525 |
JSON | 2 | 0 | 0 | 4,011 |
SVG | 2 | 0 | 0 | 2,687 |
Sass | 30 | 592 | 310 | 2,172 |
JavaScript | 8 | 345 | 158 | 1,216 |
HTML | 2 | 63 | 289 | 1,067 |
PHP | 1 | 64 | 21 | 442 |
Markdown | 1 | 52 | 0 | 161 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
glider/docs/images/octo.png | 34.58KB | 16.92KB | ▼ 51.07% |
glider/docs/assets/css/images/overlay.png | 19.63KB | 3.18KB | ▼ 83.82% |
glider/docs/favicon.png | 3.12KB | 2.16KB | ▼ 30.88% |