94% human-readable-custom-image-sizes

Code Review | Human Readable Custom Image Sizes

WordPress plugin Human Readable Custom Image Sizes scored 94% from 54 tests.

About plugin

  • Plugin page: human-readable-cu...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-4.4
  • WordPress version: 5.8.1
  • First release: Oct 13, 2015
  • Latest release: Dec 10, 2015
  • Number of updates: 7
  • Update frequency: every 8.7 days
  • Top authors: MarcGuay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 635 total downloads

Benchmarks

Plugin footprint Passed 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: ▼146.43ms] Passed 4 tests

This is a short check of server-side resources used by Human Readable Custom Image Sizes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1247.24 ▲23.86
Dashboard /wp-admin3.06 ▲0.0150.82 ▼6.61
Posts /wp-admin/edit.php3.11 ▲0.0151.48 ▼1.86
Add New Post /wp-admin/post-new.php5.43 ▼0.00101.79 ▼563.35
Media Library /wp-admin/upload.php3.01 ▼0.0037.85 ▼13.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Human Readable Custom Image Sizes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.90 ▲0.2513.21 ▲2.4946.81 ▼3.64
Dashboard /wp-admin2,969 ▲355.91 ▼0.28161.66 ▼39.49116.96 ▲1.97
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0084.66 ▲12.20111.44 ▲20.20
Add New Post /wp-admin/post-new.php1,683 ▲6818.75 ▼2.57429.02 ▲104.99114.36 ▼4.59
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.01153.14 ▼34.85118.10 ▼18.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/human-readable-custom-image-sizes/human-readable-custom-image-sizes.php:11

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: image

human-readable-custom-image-sizes/human-readable-custom-image-sizes.php 92% from 13 tests

"Human Readable Custom Image Sizes" version 1.01'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172410

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin