79% still-be-image-quality-control

Code Review | Image Quality Control | Still BE

WordPress plugin Image Quality Control | Still BE scored79%from 54 tests.

About plugin

  • Plugin page: still-be-image-qu...
  • Plugin version: 1.7.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Jul 14, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 102
  • Update frequency: every 8.4 days
  • Top authors: analogstudio (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /4,372 total downloads

Benchmarks

Plugin footprint 65% 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.79MB] [CPU: ▼0.59ms] Passed 4 tests

This is a short check of server-side resources used by Image Quality Control | Still BE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7744.32 ▲3.68
Dashboard /wp-admin4.12 ▲0.7754.51 ▼7.48
Posts /wp-admin/edit.php4.17 ▲0.8148.92 ▲2.24
Add New Post /wp-admin/post-new.php6.70 ▲0.8195.08 ▼0.80
Media Library /wp-admin/upload.php4.05 ▲0.8241.49 ▲5.62
Image Qualities /wp-admin/options-general.php?page=sb-imgq-setting-page4.0647.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Image Quality Control | Still BE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.13 ▼0.511.77 ▼0.0143.23 ▼0.00
Dashboard /wp-admin2,199 ▲195.61 ▲0.0284.96 ▼10.3542.06 ▲3.87
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0634.75 ▼4.5534.55 ▼1.78
Add New Post /wp-admin/post-new.php1,529 ▲323.32 ▲0.27701.17 ▼45.3960.94 ▲14.62
Media Library /wp-admin/upload.php1,408 ▲114.16 ▼0.0497.09 ▼5.2541.16 ▼4.74
Image Qualities /wp-admin/options-general.php?page=sb-imgq-setting-page2,6647.64253.0096.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
    file_get_contents(wp-content/plugins/still-be-image-quality-control/.htaccess): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: exif, speedup, optimize, webp, image...

still-be-image-quality-control/stillbe-image-quality-control.php 85% from 13 tests

"Image Quality Control | Still BE" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("still-be-image-quality-control.php" instead of "stillbe-image-quality-control.php")
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected7,187 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,5307933,771
JavaScript75133191,970
CSS518571,360
Markdown230081
SVG3005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity25.07
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity6.04
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits10
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods60
▷ Static methods610.00%
▷ Public methods4778.33%
▷ Protected methods1321.67%
▷ Private methods00.00%
Functions76
▷ Named functions1114.47%
▷ Anonymous functions6585.53%
Constants29
▷ Global constants2586.21%
▷ Class constants413.79%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/twentytwenty/img/before.png3.23KB0.39KB▼ 87.91%
asset/twentytwenty/img/after.png3.12KB0.34KB▼ 89.24%