Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.94MB] [CPU: ▼39.49ms] Passed 4 tests
Analyzing server-side resources used by Image License and Protection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 40.96 ▲1.23 |
Dashboard /wp-admin | 3.00 ▼0.30 | 15.82 ▼31.71 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 11.58 ▼33.57 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 11.88 ▼71.87 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 12.24 ▼20.79 |
Image License and Protection /wp-admin/admin.php?page=pixter_image_digital_license_plugin | 3.00 | 11.10 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 14 new options
New WordPress options |
---|
pixter_image_digital_license_ver |
pixter_image_digital_license_v3_user |
pixter_image_digital_license_user |
db_upgraded |
can_compress_scripts |
pixter_image_digital_license_options |
widget_recent-comments |
pixter_image_digital_license_db_ver |
widget_theysaidso_widget |
pixter_image_digital_license_uid |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Image License and Protection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲84 | 13.23 ▼1.35 | 1.88 ▼0.30 | 42.68 ▼2.27 |
Dashboard /wp-admin | 2,237 ▲49 | 4.88 ▼0.91 | 97.02 ▼18.71 | 81.23 ▲34.29 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▲0.04 | 34.16 ▼4.87 | 33.05 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 23.42 ▲0.27 | 705.53 ▲21.65 | 58.32 ▲0.62 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.14 ▼0.06 | 106.56 ▲9.97 | 78.95 ▲32.51 |
Image License and Protection /wp-admin/admin.php?page=pixter_image_digital_license_plugin | 1,370 | 2.80 | 57.21 | 40.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pixter-me-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 11 options
- pixter_image_digital_license_ver
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- p1xtr_uid
- pixter_image_digital_license_db_ver
- widget_theysaidso_widget
- pixter_image_digital_license_uid
- theysaidso_admin_options
- ...
Smoke tests 50% 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
- > GET request to /wp-admin/admin.php?page=pixter_image_digital_license_plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pixter-me-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pixter_image_digital_license_plugin
- > Notice in wp-content/plugins/pixter-image-digital-license/admin-page-class/admin-page-class.php+1658
Undefined index: fields
- > GET request to /wp-admin/admin.php?page=pixter_image_digital_license_plugin
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- > GET request to /wp-admin/admin.php?page=pixter_image_digital_license_plugin
- > Notice in wp-content/plugins/pixter-image-digital-license/admin-page-class/admin-page-class.php+1645
Undefined index: show_pages
- > GET request to /wp-admin/admin.php?page=pixter_image_digital_license_plugin
- > Notice in wp-content/plugins/pixter-image-digital-license/admin-page-class/admin-page-class.php+1645
Undefined index: show_posts
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pixter-image-digital-license/admin_functions.php:153
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
pixter-image-digital-license/pixter_image_digital_license.php 77% from 13 tests
The main PHP file in "Image License and Protection" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 309 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pixter-image-digital-license.php" instead of "pixter_image_digital_license.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected12,833 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 958 | 978 | 7,670 |
PHP | 7 | 481 | 1,409 | 2,585 |
CSS | 9 | 303 | 241 | 1,919 |
PO File | 4 | 276 | 352 | 659 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 199.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 373.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 130 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 126 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.08% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
25 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-page-class/js/FancyCheckbox/images/iphone.png | 6.26KB | 2.56KB | ▼ 59.13% |
admin-icon.png | 0.76KB | 0.77KB | 0.00% |
admin-page-class/images/add.png | 1.84KB | 1.49KB | ▼ 19.11% |
admin-page-class/js/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
admin-page-class/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |