78% imagy-wp

Code Review | imagy WP(イメージー)

WordPress plugin imagy WP(イメージー) scored78%from 54 tests.

About plugin

  • Plugin page: imagy-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2022
  • Latest release: Sep 15, 2022
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: ninth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by imagy WP(イメージー)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.85 ▼3.69
Dashboard /wp-admin3.35 ▲0.0146.13 ▼17.78
Posts /wp-admin/edit.php3.40 ▲0.0544.62 ▼3.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.05 ▼29.35
Media Library /wp-admin/upload.php3.28 ▲0.0534.74 ▲3.34

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

imagy WP(イメージー): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.20 ▼1.354.68 ▲2.8542.23 ▼2.75
Dashboard /wp-admin2,209 ▲305.90 ▲0.01104.45 ▼0.9445.87 ▲2.22
Posts /wp-admin/edit.php2,095 ▲31.99 ▲0.0037.06 ▼0.3239.54 ▲4.57
Add New Post /wp-admin/post-new.php1,535 ▼723.17 ▲4.89666.50 ▲16.3648.39 ▼13.95
Media Library /wp-admin/upload.php1,394 ▲94.20 ▼0.0297.29 ▼8.0843.48 ▼1.26
imagy高速化設定 /wp-admin/imagy.php260.440.0712.53

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 were found after uninstall: 8 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • could_front_url
    • imagy_is_working
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function imagy\\add_action() in wp-content/plugins/imagy-wp/add_menu.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/imagy.php
    • > Network (severe)
    wp-admin/imagy.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

imagy-wp/imagy.php 85% from 13 tests

"imagy WP(イメージー)" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("imagy-wp.php" instead of "imagy.php")
  • Description: The description should be shorter than 140 characters (currently 233 characters long)

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
Good job! No executable or dangerous file extensions detected283 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22425186
CSS10050
Sass11047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods00.00%
▷ Private methods430.77%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
No PNG files were detected