Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼6.33ms] Passed 4 tests
An overview of server-side resources used by Price Field
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 55.32 ▲10.58 |
Dashboard /wp-admin | 3.76 ▲0.41 | 51.13 ▼18.17 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 52.73 ▲2.53 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 83.90 ▼7.90 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 39.94 ▼1.79 |
Price Field /wp-admin/options-general.php?page=ic_price | 3.59 | 37.22 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/price-field/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Price Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 13.34 ▼1.02 | 2.29 ▲0.57 | 44.10 ▲1.35 |
Dashboard /wp-admin | 2,228 ▲28 | 4.84 ▼1.01 | 110.01 ▲9.80 | 39.44 ▼2.82 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.06 ▲0.06 | 39.59 ▲1.19 | 35.90 ▲2.73 |
Add New Post /wp-admin/post-new.php | 1,541 ▼4 | 17.59 ▼5.64 | 696.81 ▲2.07 | 60.30 ▲3.19 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.30 ▲0.07 | 98.49 ▼36.94 | 41.13 ▼23.83 |
Price Field /wp-admin/options-general.php?page=ic_price | 1,763 | 1.79 | 29.75 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== price-field ===
) - Screenshots: These screenshots require images: #1 (Price Field box), #2 (Price on front-end), #3 (Price Settings)
price-field/price-field.php Passed 13 tests
"Price Field" version 1.1.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Add Price Field to posts, pages or any custom post type. Full integration with Post Type X.
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,089 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 279 | 605 | 2,003 |
JSON | 2 | 0 | 0 | 71 |
CSS | 4 | 0 | 8 | 11 |
JavaScript | 4 | 0 | 22 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 13 | 72.22% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 85 | |
▷ Named functions | 84 | 98.82% |
▷ Anonymous functions | 1 | 1.18% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/implecode.png | 11.70KB | 5.04KB | ▼ 56.91% |