79% acme-fix-images

Code Review | Acme Fix Images

WordPress plugin Acme Fix Images scored 79% from 54 tests.

About plugin

  • Plugin page: acme-fix-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 5.9.2
  • First release: Jan 15, 2016
  • Latest release: Jan 15, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: acmethemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

8,000+ active / 53,124 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Acme Fix Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0151.16 ▼4.41
Dashboard /wp-admin3.43 ▲0.0232.02 ▼3.22
Posts /wp-admin/edit.php3.65 ▲0.0143.92 ▲6.76
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.93 ▼1,176.51
Media Library /wp-admin/upload.php3.30 ▲0.0125.69 ▲0.69
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting3.2723.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options
large_crop
medium_crop

Browser metrics Passed 4 tests

This is an overview of browser requirements for Acme Fix Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.21 ▲0.227.15 ▲1.352.20 ▼0.24
Dashboard /wp-admin2,897 ▲396.11 ▼0.07116.71 ▼19.01153.79 ▼12.76
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0164.77 ▲3.16138.77 ▼2.04
Add New Post /wp-admin/post-new.php1,755 ▲320.93 ▼0.62425.80 ▼20.43153.99 ▼1.00
Media Library /wp-admin/upload.php1,703 ▲85.45 ▼0.08144.26 ▼18.51184.11 ▼9.58
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting1,1282.3852.6096.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • large_crop
    • medium_crop

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acme-fix-images/acme-fix-images.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acme-fix-images/inc/acme-admin-menu.php:280
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acme-fix-images/inc/hooks/fix-image-ajax.php:62

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: fix image, resize image, image builder, hard crop

acme-fix-images/acme-fix-images.php Passed 13 tests

The main PHP script in "Acme Fix Images" version 1.0.0 is automatically included on every request by WordPress
71 characters long description:
Fix image sizes after you have changed image sizes from Media Settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin293 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP471122293

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin