83% imajize

Code Review | Imajize

WordPress plugin Imajize scored83%from 54 tests.

About plugin

  • Plugin page: imajize
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Mar 16, 2023
  • Number of updates: 38
  • Update frequency: every 76.0 days
  • Top authors: imajize (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /5,920 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.66ms] Passed 4 tests

Server-side resources used by Imajize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.38 ▼1.53
Dashboard /wp-admin3.33 ▼0.0247.70 ▼10.50
Posts /wp-admin/edit.php3.38 ▲0.0249.01 ▼7.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.18 ▼17.60
Media Library /wp-admin/upload.php3.25 ▲0.0237.80 ▼2.53

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Imajize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.62 ▼0.767.32 ▲4.3942.89 ▼13.96
Dashboard /wp-admin2,222 ▲194.87 ▼1.01106.09 ▼4.8740.86 ▼4.52
Posts /wp-admin/edit.php2,104 ▲42.17 ▲0.1537.92 ▼4.4535.00 ▼0.19
Add New Post /wp-admin/post-new.php1,534 ▲323.15 ▲0.15691.45 ▲47.2156.46 ▲0.90
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.00112.90 ▲5.5947.02 ▼1.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/imajize/admin/partials/imajize-admin-display.php
    • > /wp-content/plugins/imajize/public/partials/imajize-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("www.imajize.com")
  • Plugin Name: Please specify the plugin name on the first line ( === imajize === )
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt is a good inspiration

imajize/imajize.php Passed 13 tests

"Imajize" version 1.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Imajize is a maintenance-free publishing platform for spinning your products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin242 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12155563236
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin