Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.22ms] Passed 4 tests
An overview of server-side resources used by POFW Option Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.13 ▼4.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.09 ▼15.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.74 ▲2.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.27 ▲3.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.15 ▼0.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by POFW Option Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.33 | 1.68 ▲0.10 | 37.88 ▼2.76 |
Dashboard /wp-admin | 2,189 ▲9 | 5.52 ▼0.14 | 88.17 ▲0.80 | 40.47 ▼0.84 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.00 | 40.07 ▲2.48 | 37.54 ▲5.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.01 | 617.36 ▼2.28 | 50.00 ▼3.38 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.14 ▼0.11 | 96.76 ▼2.95 | 40.71 ▼4.02 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
2 plugin tags: option images, product options
pofw-option-images/pofw-option-images.php Passed 13 tests
"POFW Option Images" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Adds images to the product options of the "Product Options for WooCommerce" plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin653 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 204 | 19 | 526 |
JavaScript | 2 | 38 | 0 | 116 |
CSS | 2 | 6 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.16% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin