Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼12.41ms] Passed 4 tests
This is a short check of server-side resources used by ArtPlacer Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.23 ▲0.60 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.06 ▼19.35 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.55 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 75.18 ▼28.70 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 33.19 ▼0.19 |
ArtPlacer /wp-admin/admin.php?page=art-placer | 3.31 | 32.52 |
Add /wp-admin/admin.php?page=add-art-placer | 3.33 | 29.70 |
/wp-admin/admin.php?page=edit-art-placer | 3.33 | 31.73 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_artplacer |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
jal_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by ArtPlacer Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲136 | 14.22 ▼0.15 | 4.34 ▲2.61 | 46.14 ▲1.06 |
Dashboard /wp-admin | 2,231 ▲63 | 5.60 ▲0.07 | 98.29 ▲5.09 | 78.94 ▲38.60 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▼0.02 | 38.52 ▲0.68 | 33.85 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.69 ▼0.02 | 778.43 ▲109.30 | 57.13 ▼2.28 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.25 ▲0.09 | 105.03 ▲6.17 | 85.51 ▲44.32 |
ArtPlacer /wp-admin/admin.php?page=art-placer | 864 | 1.53 | 9.64 | 55.90 |
Add /wp-admin/admin.php?page=add-art-placer | 984 | 1.35 | 8.39 | 30.62 |
/wp-admin/admin.php?page=edit-art-placer | 970 | 1.53 | 8.35 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- jal_db_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+206
Trying to get property 'term_id' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+216
Trying to get property 'name' of non-object
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+190
Undefined variable: row
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+107
Trying to get property 'code' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+148
Trying to get property 'position' of non-object
- > GET request to /wp-admin/admin.php?page=edit-art-placer
- > Notice in wp-content/plugins/artplacer-widget/includes/edit.php+190
Trying to get property 'categories' of non-object
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
Almost there! Just fix the following items
- 8× 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/artplacer-widget/includes/functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/artplacer-widget/includes/modal.php:12
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/artplacer-widget/includes/list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/artplacer-widget/includes/edit.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artplacer-widget/artplacer-widget.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/artplacer-widget/includes/add.php:35
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/artplacer-widget/includes/edit.php on line 33
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/artplacer-widget/includes/list.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
artplacer-widget/artplacer-widget.php Passed 13 tests
This is the main PHP file of "ArtPlacer Widget" version 2.20.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Display the ArtPlacer widget into your products or posts.
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
No dangerous file extensions were detected3,349 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 96 | 0 | 1,603 |
PHP | 6 | 103 | 27 | 1,195 |
CSS | 3 | 97 | 3 | 551 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.38MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/artplacer-menu-icon.png | 1.09KB | 0.29KB | ▼ 73.91% |
assets/banner-1544x500-rtl.png | 508.74KB | 274.98KB | ▼ 45.95% |
assets/images/logo-white.png | 2.33KB | 2.28KB | ▼ 2.22% |
assets/images/wp-artplacer-ico.png | 1.02KB | 0.15KB | ▼ 85.62% |
assets/icon-128x128.png | 1.38KB | 0.37KB | ▼ 73.25% |