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.00MB] [CPU: ▼10.35ms] Passed 4 tests
Server-side resources used by Product Weight - Price Per Weight
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.35 ▼9.01 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.03 ▼14.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.00 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.47 ▼19.14 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.69 ▲2.20 |
Price Per Weight /wp-admin/admin.php?page=price-per-weight | 3.20 | 29.62 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_price_per_weight |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
test_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Weight - Price Per Weight
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.12 | 4.98 ▲3.42 | 44.98 ▲3.01 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.99 | 97.93 ▲0.68 | 37.93 ▼4.09 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.06 | 34.23 ▼3.33 | 32.50 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.70 ▲0.10 | 675.83 ▲60.85 | 60.48 ▲17.86 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.02 | 92.96 ▼3.79 | 41.88 ▼2.54 |
Price Per Weight /wp-admin/admin.php?page=price-per-weight | 813 | 2.02 | 22.40 | 28.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_price_per_weight
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- test_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/product-weight/product-weight.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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
product-weight/product-weight.php 92% from 13 tests
"Product Weight - Price Per Weight" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 224 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected183 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 22 | 183 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 9 | |
▷ Named functions | 9 | 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
No PNG images were found in this plugin