84% imagenius

Code Review | imaGenius

WordPress plugin imaGenius scored84%from 54 tests.

About plugin

  • Plugin page: imagenius
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2013
  • Latest release: Dec 5, 2014
  • Number of updates: 61
  • Update frequency: every 10.0 days
  • Top authors: iGenius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼14.64ms] Passed 4 tests

Server-side resources used by imaGenius
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.82 ▼4.70
Dashboard /wp-admin3.32 ▼0.0344.07 ▼18.31
Posts /wp-admin/edit.php3.37 ▲0.0141.88 ▼3.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.68 ▼31.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▲1.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for imaGenius
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.20 ▼1.202.04 ▲0.1937.87 ▼6.60
Dashboard /wp-admin2,206 ▲185.83 ▼0.02100.49 ▼0.8640.69 ▲0.62
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0733.91 ▼0.9831.67 ▼5.51
Add New Post /wp-admin/post-new.php1,539 ▼323.12 ▲4.93655.27 ▲44.3455.64 ▲0.07
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0697.25 ▲0.4340.63 ▼1.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imagenius/imaGenius.php:107

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: images, animations, filters, frames

imagenius/imaGenius.php 92% from 13 tests

"imaGenius" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("imagenius.php" instead of "imaGenius.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin368 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS123295
PHP1162573

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
11 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mahogany.png11.26KB10.70KB▼ 5.00%
images/kiwi.png15.75KB5.67KB▼ 63.98%
images/mango.png15.20KB5.69KB▼ 62.56%
images/bamboo.png11.98KB10.64KB▼ 11.22%
images/birch.png12.15KB10.71KB▼ 11.90%