84% image-label-maker

Code Review | Image Label Maker

WordPress plugin Image Label Maker scored84%from 54 tests.

About plugin

  • Plugin page: image-label-maker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 6.3.1
  • First release: Aug 12, 2018
  • Latest release: Aug 20, 2018
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.51ms] Passed 4 tests

Server-side resources used by Image Label Maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.39 ▲2.57
Dashboard /wp-admin3.36 ▲0.0247.24 ▼9.50
Posts /wp-admin/edit.php3.41 ▲0.0646.66 ▼2.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.14 ▼7.08
Media Library /wp-admin/upload.php3.28 ▲0.0630.66 ▼3.22

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Image Label Maker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.17 ▼1.211.69 ▼0.0547.72 ▲8.03
Dashboard /wp-admin2,219 ▲285.79 ▲0.8996.91 ▼3.0935.94 ▼6.15
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0034.22 ▼7.2235.75 ▲0.39
Add New Post /wp-admin/post-new.php1,559 ▲4518.19 ▲0.79609.80 ▼64.5245.83 ▼2.04
Media Library /wp-admin/upload.php1,404 ▲164.31 ▲0.0794.03 ▼24.2041.10 ▼7.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-label-maker/image-label-maker.php:26

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

image-label-maker/image-label-maker.php Passed 13 tests

"Image Label Maker" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
114 characters long description:
The Image Label Maker is a simple plugin to merge images together and creates a new image with label or watermark.

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
Success! There were no dangerous files found in this plugin321 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11346301
CSS16020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin