84% improved-image-editor

Code Review | Improved Image Editor

WordPress plugin Improved Image Editor scored84%from 54 tests.

About plugin

  • Plugin page: improved-image-ed...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 4
  • Update frequency: every 93.8 days
  • Top authors: markoheijnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.07ms] Passed 4 tests

Server-side resources used by Improved Image Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.00 ▲4.35
Dashboard /wp-admin3.34 ▼0.0149.96 ▼9.68
Posts /wp-admin/edit.php3.39 ▲0.0342.51 ▼1.00
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.42 ▼10.79
Media Library /wp-admin/upload.php3.34 ▲0.1036.25 ▲1.18

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Improved Image Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.40 ▼0.211.82 ▲0.3142.54 ▲1.60
Dashboard /wp-admin2,195 ▲235.61 ▼0.1286.49 ▼16.8143.17 ▲2.26
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0037.09 ▲0.2632.33 ▼2.28
Add New Post /wp-admin/post-new.php6,246 ▲4,72021.52 ▼1.73927.13 ▲248.6535.70 ▼25.60
Media Library /wp-admin/upload.php1,394 ▼64.21 ▼0.00100.69 ▲3.6041.77 ▼1.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/improved-image-editor/editors/gd.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improved-image-editor/improved-image-editor.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Image_Editor' not found in wp-content/plugins/improved-image-editor/editors/gmagick.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Image_Editor_Imagick' not found in wp-content/plugins/improved-image-editor/editors/imagick.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: tabs, image, imagick, gmagick, gd...

improved-image-editor/improved-image-editor.php Passed 13 tests

The entry point to "Improved Image Editor" version 0.1 is a PHP file that has certain tags in its header comment area
58 characters long description:
WordPress needs a better image editor UI so let this be it

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin536 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5193211536

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.40
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods52
▷ Static methods713.46%
▷ Public methods4994.23%
▷ Protected methods23.85%
▷ Private methods11.92%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected