84% imagemagick-engine

Code Review | ImageMagick Engine

WordPress plugin ImageMagick Engine scored84%from 54 tests.

About plugin

  • Plugin page: imagemagick-engine
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2010
  • Latest release: Feb 8, 2023
  • Number of updates: 55
  • Update frequency: every 82.2 days
  • Top authors: orangelab (54.55%)rickardw (47.27%)

Code review

54 tests

User reviews

14 reviews

Install metrics

60,000+ active /836,897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼9.98ms] Passed 4 tests

Analyzing server-side resources used by ImageMagick Engine
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.20 ▲1.10
Dashboard /wp-admin3.46 ▲0.1252.72 ▼13.15
Posts /wp-admin/edit.php3.58 ▲0.2249.03 ▲2.25
Add New Post /wp-admin/post-new.php6.04 ▲0.1684.59 ▼30.13
Media Library /wp-admin/upload.php3.39 ▲0.1636.93 ▲3.06
ImageMagick Engine /wp-admin/options-general.php?page=imagemagick-engine3.3650.42

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ImageMagick Engine
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.60 ▼0.781.95 ▼0.2443.76 ▼0.19
Dashboard /wp-admin2,210 ▲224.88 ▼0.15105.04 ▲0.3443.22 ▲3.63
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0034.57 ▼10.9535.53 ▼1.75
Add New Post /wp-admin/post-new.php1,536 ▼023.13 ▼0.03696.81 ▲27.2567.66 ▲1.96
Media Library /wp-admin/upload.php1,397 ▲94.21 ▼0.03108.43 ▼0.7749.16 ▲5.70
ImageMagick Engine /wp-admin/options-general.php?page=imagemagick-engine1,2182.0142.9237.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/imagemagick-engine/imagemagick-engine.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Administration interface) image not found
The official readme.txt is a good inspiration

imagemagick-engine/imagemagick-engine.php Passed 13 tests

The entry point to "ImageMagick Engine" version 1.7.7 is a PHP file that has certain tags in its header comment area
88 characters long description:
Improve the quality of re-sized images by replacing standard GD library with ImageMagick

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,554 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1200169877
PO File4198232474
JavaScript1256126
CSS119077

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin