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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.97ms] Passed 4 tests
This is a short check of server-side resources used by WCSpots - image hotspots for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 41.08 ▼3.26 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.99 ▼11.45 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.24 ▼6.25 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.26 ▲5.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 47.73 ▲13.27 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WCSpots - image hotspots for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.29 ▼0.32 | 1.71 ▲0.08 | 43.47 ▲3.15 |
Dashboard /wp-admin | 2,221 ▲47 | 5.64 ▼0.03 | 83.04 ▼17.89 | 43.40 ▲0.82 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.11 ▲0.11 | 35.99 ▼0.14 | 32.37 ▼3.46 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,867 | 28.22 ▲5.09 | 815.64 ▲108.58 | 62.37 ▼6.43 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.15 ▼0.09 | 103.75 ▼2.09 | 50.39 ▲2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcspots/wcspots.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: gutenberg, block, hotspots, showcase, woocommerce
wcspots/wcspots.php 85% from 13 tests
The entry point to "WCSpots - image hotspots for WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
- Requires at least: The required version number did not match the one declared in readme.txt ("6.0" instead of "6.1")
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
There were no executable files found in this plugin36,918 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 9 | 0 | 32,964 |
JavaScript | 28 | 451 | 437 | 3,149 |
Sass | 2 | 107 | 4 | 689 |
Markdown | 1 | 30 | 0 | 64 |
PHP | 3 | 12 | 34 | 45 |
SVG | 1 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/controls/icons/popoverLayout_4.png | 0.56KB | 0.37KB | ▼ 33.80% |
src/controls/icons/Layout_1.png | 1.17KB | 0.72KB | ▼ 38.35% |
build/images/Layout_3.af9a2e35.png | 1.46KB | 0.80KB | ▼ 44.74% |
src/controls/icons/Layout_3.png | 1.46KB | 0.80KB | ▼ 44.74% |
src/controls/icons/Layout_2.png | 0.94KB | 0.51KB | ▼ 45.48% |