72% ameya-retouch

Code Review | Ameya Retouch

WordPress plugin Ameya Retouch scored 72% from 54 tests.

About plugin

  • Plugin page: ameya-retouch
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2023
  • Latest release: Apr 3, 2023
  • Number of updates: 5
  • Update frequency: every 10.2 days
  • Top authors: candorcandy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.12ms] Passed 4 tests

An overview of server-side resources used by Ameya Retouch
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.62 ▼4.85
Dashboard /wp-admin3.39 ▲0.0949.08 ▲1.36
Posts /wp-admin/edit.php3.44 ▲0.0847.53 ▲5.15
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.47 ▼17.84
Media Library /wp-admin/upload.php3.31 ▲0.0837.05 ▲4.85
Retouch /wp-admin/upload.php?page=ameyaretouch3.2631.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ameya Retouch
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.44 ▲0.041.73 ▼0.3438.89 ▼7.06
Dashboard /wp-admin2,210 ▲225.88 ▲0.96108.09 ▼7.9641.37 ▼0.04
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0341.10 ▼0.3236.00 ▼0.82
Add New Post /wp-admin/post-new.php1,539 ▲1123.27 ▲4.79614.13 ▼6.3364.84 ▲14.28
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0696.08 ▼1.5339.96 ▼3.35
Retouch /wp-admin/upload.php?page=ameyaretouch9341.7624.0432.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/upload.php?page=ameyaretouch
    • > Notice in wp-content/plugins/ameya-retouch/ameyaretouch.php+74
    Undefined index: filename

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ameya-retouch/uninstall.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ameya-retouch/ameyaretouch.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: upload, image, retouch

ameya-retouch/ameyaretouch.php 92% from 13 tests

This is the main PHP file of "Ameya Retouch" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ameya-retouch.php" instead of "ameyaretouch.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin230 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP219158
PO File1252860
CSS11011
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin