79% pixmagix

Code Review | PixMagix - Image Editor

WordPress plugin PixMagix - Image Editor scored79%from 54 tests.

About plugin

  • Plugin page: pixmagix
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2023
  • Latest release: Dec 3, 2023
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: andrasweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /36 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /9.22 ▲5.7566.52 ▲21.50
Dashboard /wp-admin9.24 ▲5.8980.65 ▲16.31
Posts /wp-admin/edit.php9.24 ▲5.8889.03 ▲42.64
Add New Post /wp-admin/post-new.php10.57 ▲4.68124.58 ▲28.53
Media Library /wp-admin/upload.php9.24 ▲6.0180.08 ▲47.01
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2469.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17014.27 ▼0.081.69 ▼0.0328.65 ▼14.00
Dashboard /wp-admin2,317 ▲1365.56 ▼0.1695.88 ▼8.0476.76 ▲33.40
Posts /wp-admin/edit.php2,241 ▲1381.95 ▼0.0239.38 ▲4.6137.17 ▲4.32
Add New Post /wp-admin/post-new.php1,811 ▲28521.96 ▼0.91621.77 ▼1.7827.53 ▼22.90
Media Library /wp-admin/upload.php1,552 ▲1554.30 ▲0.08102.18 ▲1.3971.85 ▲29.82
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,2051.6526.0730.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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript2311,12020,73767,115
PHP1328,67318,14035,872
CSS2448187,680
SVG10056
JSON3003

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 code0.62
Average class complexity79.10
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes58.77%
Methods1,323
▷ Static methods20015.12%
▷ Public methods92269.69%
▷ Protected methods171.28%
▷ Private methods38429.02%
Functions153
▷ Named functions15198.69%
▷ Anonymous functions21.31%
Constants153
▷ Global constants10367.32%
▷ Class constants5032.68%
▷ Public constants50100.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
FileSize - originalSize - compressedSavings
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%