10% image-editor-by-pixo

Code Review | Image Editor by Pixo

WordPress plugin Image Editor by Pixo scored10%from 54 tests.

About plugin

  • Plugin page: image-editor-by-pixo
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2018
  • Latest release: Jul 23, 2023
  • Number of updates: 61
  • Update frequency: every 29.9 days
  • Top authors: Ickata (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /9,502 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.54 ▼7.34
Dashboard /wp-admin3.34 ▼0.0054.69 ▼22.25
Posts /wp-admin/edit.php3.40 ▲0.0455.85 ▲4.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.30 ▼9.52
Media Library /wp-admin/upload.php3.27 ▲0.0542.71 ▲5.91
Add New /wp-admin/post-new.php?post_type=pixoeditor-stickers3.3958.97
All Stickers Libraries /wp-admin/edit.php?post_type=pixoeditor-stickers3.3243.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.61 ▼0.781.89 ▲0.0042.81 ▼3.76
Dashboard /wp-admin2,272 ▲785.31 ▼0.58113.48 ▼6.1944.04 ▼2.37
Posts /wp-admin/edit.php2,168 ▲682.60 ▲0.5960.47 ▲21.3339.60 ▲1.40
Add New Post /wp-admin/post-new.php1,574 ▲4823.28 ▲5.82685.83 ▼2.4437.40 ▼15.21
Media Library /wp-admin/upload.php1,446 ▲464.56 ▲0.31114.24 ▲5.2449.03 ▲3.48
Add New /wp-admin/post-new.php?post_type=pixoeditor-stickers2,1347.37179.8249.19
All Stickers Libraries /wp-admin/edit.php?post_type=pixoeditor-stickers1,1352.5648.7729.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP4196311,671
JavaScript1481423
CSS10011

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 code0.44
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants31
▷ Global constants31100.00%
▷ Class constants00.00%
▷ Public constants00.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