Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/image-editor-by-pixo/pixo.php+225
Undefined variable: wp_version
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.70ms] Passed 4 tests
Analyzing server-side resources used by Image Editor by Pixo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.54 ▼7.34 |
Dashboard /wp-admin | 3.34 ▼0.00 | 54.69 ▼22.25 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 55.85 ▲4.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.30 ▼9.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 42.71 ▲5.91 |
Add New /wp-admin/post-new.php?post_type=pixoeditor-stickers | 3.39 | 58.97 |
All Stickers Libraries /wp-admin/edit.php?post_type=pixoeditor-stickers | 3.32 | 43.42 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
__pixoeditor_usage |
widget_theysaidso_widget |
__pixoeditor_manage |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Image Editor by Pixo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.61 ▼0.78 | 1.89 ▲0.00 | 42.81 ▼3.76 |
Dashboard /wp-admin | 2,272 ▲78 | 5.31 ▼0.58 | 113.48 ▼6.19 | 44.04 ▼2.37 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.60 ▲0.59 | 60.47 ▲21.33 | 39.60 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.28 ▲5.82 | 685.83 ▼2.44 | 37.40 ▼15.21 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.56 ▲0.31 | 114.24 ▲5.24 | 49.03 ▲3.48 |
Add New /wp-admin/post-new.php?post_type=pixoeditor-stickers | 2,134 | 7.37 | 179.82 | 49.19 |
All Stickers Libraries /wp-admin/edit.php?post_type=pixoeditor-stickers | 1,135 | 2.56 | 48.77 | 29.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- __pixoeditor_usage
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- __pixoeditor_manage
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 3× 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/image-editor-by-pixo/post-types.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-editor-by-pixo/post-types.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/image-editor-by-pixo/frontend.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pixoeditor-stickers
- > Javascript (severe) in unknown
/wp-admin/js/editor-expand.min.js?ver=6.3.1 1:1853 Uncaught TypeError: Cannot read properties of undefined (reading 'top')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
image-editor-by-pixo/pixo.php 92% from 13 tests
The main PHP script in "Image Editor by Pixo" version 2.3.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("image-editor-by-pixo.php" instead of "pixo.php")
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
No dangerous file extensions were detected2,105 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 196 | 31 | 1,671 |
JavaScript | 1 | 48 | 1 | 423 |
CSS | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 3 | 75.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 31 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin