Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.55MB] [CPU: ▲27.25ms] 75% from 4 tests
An overview of server-side resources used by PixMagix - Image Editor
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.55MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.75 | 66.52 ▲21.50 |
Dashboard /wp-admin | 9.24 ▲5.89 | 80.65 ▲16.31 |
Posts /wp-admin/edit.php | 9.24 ▲5.88 | 89.03 ▲42.64 |
Add New Post /wp-admin/post-new.php | 10.57 ▲4.68 | 124.58 ▲28.53 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 80.08 ▲47.01 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.24 | 69.54 |
Server storage [IO: ▲9.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 262 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
fs_accounts |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PixMagix - Image Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲170 | 14.27 ▼0.08 | 1.69 ▼0.03 | 28.65 ▼14.00 |
Dashboard /wp-admin | 2,317 ▲136 | 5.56 ▼0.16 | 95.88 ▼8.04 | 76.76 ▲33.40 |
Posts /wp-admin/edit.php | 2,241 ▲138 | 1.95 ▼0.02 | 39.38 ▲4.61 | 37.17 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,811 ▲285 | 21.96 ▼0.91 | 621.77 ▼1.78 | 27.53 ▼22.90 |
Media Library /wp-admin/upload.php | 1,552 ▲155 | 4.30 ▲0.08 | 102.18 ▲1.39 | 71.85 ▲29.82 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,205 | 1.65 | 26.07 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/pixmagix/vendor/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
These attributes need your attention:
- Tags: There are too many tags (25 tag instead of maximum 10)
pixmagix/pixmagix.php 92% from 13 tests
The main PHP script in "PixMagix - Image Editor" version 1.4.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 254 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin110,726 lines of code in 183 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 11,120 | 20,737 | 67,115 |
PHP | 132 | 8,673 | 18,140 | 35,872 |
CSS | 24 | 48 | 18 | 7,680 |
SVG | 1 | 0 | 0 | 56 |
JSON | 3 | 0 | 0 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 79.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 5 | 8.77% |
Methods | 1,323 | |
▷ Static methods | 200 | 15.12% |
▷ Public methods | 922 | 69.69% |
▷ Protected methods | 17 | 1.28% |
▷ Private methods | 384 | 29.02% |
Functions | 153 | |
▷ Named functions | 151 | 98.69% |
▷ Anonymous functions | 2 | 1.31% |
Constants | 153 | |
▷ Global constants | 103 | 67.32% |
▷ Class constants | 50 | 32.68% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |