79% acme-fix-images

Code Review | Acme Fix Images

WordPress plugin Acme Fix Images scored79%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: 6.3.1
  • 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

6,000+ active /66,988 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.75ms] Passed 4 tests

Server-side resources used by Acme Fix Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0735.24 ▼6.11
Dashboard /wp-admin3.37 ▲0.0643.40 ▼10.26
Posts /wp-admin/edit.php3.42 ▲0.0646.97 ▲0.87
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.96 ▼15.50
Media Library /wp-admin/upload.php3.29 ▲0.0635.66 ▲1.27
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting3.2627.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
medium_crop
can_compress_scripts
widget_recent-posts
large_crop
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Acme Fix Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.091.63 ▼0.2038.59 ▼9.40
Dashboard /wp-admin2,210 ▲224.82 ▼0.07111.65 ▲4.0743.59 ▼7.20
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0135.44 ▼2.3729.13 ▼6.63
Add New Post /wp-admin/post-new.php1,517 ▼1117.69 ▼0.43647.07 ▲18.9160.36 ▼3.27
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.01101.50 ▼1.6041.18 ▼5.36
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting8732.0728.0928.20

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • large_crop
    • theysaidso_admin_options
    • db_upgraded
    • medium_crop
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/acme-fix-images/acme-fix-images.php
  • 2× 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/acme-fix-images/inc/hooks/fix-image-ajax.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acme-fix-images/inc/acme-admin-menu.php:280

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: hard crop, fix image, image builder, resize image

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

The entry point to "Acme Fix Images" version 1.0.0 is a PHP file that has certain tags in its header comment area
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected293 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP471122293

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin