Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.53ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Molds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.63 ▼5.19 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.23 ▼6.58 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.34 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.95 ▼12.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 43.27 ▲7.10 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Woocommerce Molds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.47 ▲0.10 | 2.06 ▲0.26 | 44.21 ▲2.70 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲1.00 | 108.80 ▼8.58 | 38.57 ▼6.91 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.08 | 36.05 ▼3.17 | 33.07 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.34 ▼0.15 | 648.54 ▼26.24 | 54.15 ▼6.22 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.08 | 96.36 ▼19.55 | 42.02 ▼9.00 |
Uninstaller [IO: ▲0.16MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall successfully, leaving 15 files (0.16MB) in the plugin directory
- (new file) assets/images/notapplied.png
- (new file) css/admin.css
- (new file) assets/images/minus.png
- (new file) assets/images/applied.png
- (new file) js/admin.js
- (new file) languages/woocommerce-molds-fr_FR.mo
- (new file) assets/images/edit.png
- (new file) assets/images/plus.png
- (new file) assets/images/molds.png
- (new file) assets/images/remove.png
- ...
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-molds/woocommerce-molds.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== woocommerce-molds ===
)
woocommerce-molds/woocommerce-molds.php 85% from 13 tests
"Woocommerce Molds" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 462 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,627 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 290 | 423 | 1,966 |
PO File | 1 | 102 | 144 | 286 |
CSS | 1 | 28 | 0 | 232 |
JavaScript | 1 | 18 | 3 | 143 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 94.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 81 | 93.10% |
▷ Protected methods | 6 | 6.90% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/molds.png | 4.79KB | 2.54KB | ▼ 46.96% |
assets/images/notapplied.png | 0.47KB | 0.28KB | ▼ 40.96% |
assets/images/plus.png | 0.78KB | 0.53KB | ▼ 32.58% |
assets/images/minus.png | 0.71KB | 0.48KB | ▼ 31.68% |
assets/images/edit.png | 0.52KB | 0.22KB | ▼ 58.85% |