Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-product-collage/woo-productcollage.php+16
Undefined variable: wpdb
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.85ms] Passed 4 tests
A check of server-side resources used by Product Collage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.69 ▼40.96 |
Dashboard /wp-admin | 2.08 ▼1.23 | 6.71 ▼39.78 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.97 ▼41.02 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.55 ▼93.62 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 5.61 ▼30.54 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Product Collage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.17 | 1.75 ▲0.11 | 43.78 ▼6.15 |
Dashboard /wp-admin | 2,200 ▲12 | 5.83 ▲0.02 | 105.65 ▼0.22 | 39.66 ▼9.24 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.01 | 39.59 ▼3.15 | 34.02 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.14 ▼0.06 | 659.28 ▲46.17 | 55.67 ▲4.86 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▲0.03 | 96.86 ▼8.71 | 47.64 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/woo-product-collage/woo-productcollage.php+29
Constant WPC_DEFAULT_DATE_FORMAT already defined
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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 following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-product-collage/sql/install_table.php:43
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
woo-product-collage/woo-productcollage.php 92% from 13 tests
The entry point to "Product Collage" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-collage.php" instead of "woo-productcollage.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,463 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 406 | 194 | 1,750 |
CSS | 4 | 118 | 56 | 919 |
PHP | 7 | 239 | 44 | 794 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/i.png | 1.51KB | 1.44KB | ▼ 4.54% |
images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/accomo.png | 1.27KB | 1.11KB | ▼ 12.27% |
images/s_warn.png | 0.25KB | 0.14KB | ▼ 44.06% |
images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |