Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▲1.76ms] 75% from 4 tests
An overview of server-side resources used by artidomo print on-demand
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,441.74ms on /wp-admin/admin.php?page=products_mapping_list)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 39.02 ▼0.99 |
Dashboard /wp-admin | 3.60 ▲0.29 | 50.88 ▲5.49 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 50.21 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 94.51 ▲5.79 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 32.89 ▼1.33 |
Help /wp-admin/admin.php?page=artidomo_help | 3.49 | 33.30 |
Settings /wp-admin/admin.php?page=settings | 3.53 | 33.63 |
New Mapping /wp-admin/admin.php?page=new_mapping | 3.75 | 2,622.38 |
Products Mapping list /wp-admin/admin.php?page=products_mapping_list | 3.54 | 2,441.74 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
artidomo print on-demand: 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,925 ▲179 | 13.85 ▼0.53 | 4.86 ▲3.06 | 40.75 ▼2.12 |
Dashboard /wp-admin | 2,245 ▲57 | 5.23 ▲0.12 | 111.10 ▲13.27 | 40.58 ▼3.14 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.47 ▲0.45 | 41.49 ▲5.81 | 36.88 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 18.53 ▲1.00 | 617.91 ▼26.35 | 65.14 ▲20.15 |
Media Library /wp-admin/upload.php | 1,424 ▲42 | 4.45 ▲0.26 | 99.10 ▼29.53 | 41.58 ▼9.62 |
Help /wp-admin/admin.php?page=artidomo_help | 905 | 1.81 | 29.92 | 38.71 |
Settings /wp-admin/admin.php?page=settings | 902 | 1.90 | 25.85 | 27.72 |
New Mapping /wp-admin/admin.php?page=new_mapping | 1,257 | 2.19 | 32.50 | 37.63 |
Products Mapping list /wp-admin/admin.php?page=products_mapping_list | 886 | 1.85 | 25.71 | 27.01 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+225
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+225
Trying to get property 'name' of non-object
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+238
Undefined property: stdClass::$categories
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+258
Undefined property: stdClass::$smalllengths
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+272
Undefined property: stdClass::$largelengths
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+291
Undefined variable: post_ID
- > GET request to /wp-admin/admin.php?page=new_mapping
- > Notice in wp-content/plugins/artidomo-print-on-demand/admin/partials/artidomo-new-mapping-settings.php+302
Undefined index: edit
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("www.artidomo.eu")
- Tags: Please reduce the number of tags, currently 40 tag instead of maximum 10
artidomo-print-on-demand/artidomo-print.php 92% from 13 tests
The principal PHP file in "artidomo print on-demand" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("artidomo-print-on-demand.php" instead of "artidomo-print.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,576 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 271 | 529 | 1,896 |
JavaScript | 3 | 8 | 55 | 328 |
PO File | 1 | 84 | 103 | 213 |
CSS | 3 | 5 | 8 | 139 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.62MB with 0.40MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 147.39KB | 49.32KB | ▼ 66.54% |
assets/icon-256x256.png | 23.31KB | 8.62KB | ▼ 63.03% |
assets/banner-1544x500.png | 468.81KB | 167.94KB | ▼ 64.18% |