83% aati-wp-finetuning

Code Review | AATI WP Finetuning

WordPress plugin AATI WP Finetuning scored 83% from 54 tests.

About plugin

  • Plugin page: aati-wp-finetuning
  • Plugin version: 0.9.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 14, 2021
  • Latest release: Aug 18, 2023
  • Number of updates: 53
  • Update frequency: every 18.0 days
  • Top authors: jseutens (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,522 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by AATI WP Finetuning
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.70 ▼6.86
Dashboard /wp-admin3.32 ▲0.0152.54 ▲5.33
Posts /wp-admin/edit.php3.37 ▲0.0147.31 ▲1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.51 ▼11.72
Media Library /wp-admin/upload.php3.24 ▲0.0133.41 ▲1.95

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification detected: 1 file (4.21KB) outside of "wp-content/plugins/aati-wp-finetuning/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for AATI WP Finetuning
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.48 ▲0.011.78 ▼0.3738.19 ▼10.97
Dashboard /wp-admin2,235 ▲475.80 ▼0.02106.42 ▼9.6541.80 ▼4.97
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0334.65 ▼2.6133.27 ▼2.57
Add New Post /wp-admin/post-new.php1,522 ▼1217.55 ▼5.82626.53 ▼13.5750.97 ▲1.35
Media Library /wp-admin/upload.php1,397 ▲154.27 ▲0.0595.37 ▼3.5742.20 ▲1.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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_action() in wp-content/plugins/aati-wp-finetuning/includes/admin/aatiwpf_cron.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (![Screenshot 1](screenshots/screenshot-1.png)), #2 (![Screenshot 2](screenshots/screenshot-2.png))
You can take inspiration from this readme.txt

aati-wp-finetuning/aati-wp-finetuning.php 92% from 13 tests

The main PHP script in "AATI WP Finetuning" version 0.9.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin474 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP1126168305
PO File52525164
CSS2005
HTML1100

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions28
▷ Named functions2589.29%
▷ Anonymous functions310.71%
Constants13
▷ Global constants13100.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
6 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png5.07KB0.18KB▼ 96.38%
screenshots/screenshot-2.png32.08KB16.06KB▼ 49.93%
assets/icon-256x256.png88.64KB39.41KB▼ 55.54%
assets/icon-128x128.png26.99KB12.06KB▼ 55.29%
screenshots/screenshot-1.png32.08KB16.06KB▼ 49.93%