90% disable-thumbnails-and-threshold

Code Review | Disable Thumbnails, Threshold and Image Options

WordPress plugin Disable Thumbnails, Threshold and Image Options scored90%from 54 tests.

About plugin

  • Plugin page: disable-thumbnail...
  • Plugin version: 0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 3, 2020
  • Latest release: Nov 20, 2023
  • Number of updates: 44
  • Update frequency: every 25.3 days
  • Top authors: kgmservizi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,477 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Disable Thumbnails, Threshold and Image Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.52 ▲0.42
Dashboard /wp-admin3.41 ▲0.1050.49 ▲4.23
Posts /wp-admin/edit.php3.52 ▲0.1649.78 ▲2.76
Add New Post /wp-admin/post-new.php5.99 ▲0.1089.11 ▲4.54
Media Library /wp-admin/upload.php3.33 ▲0.1037.42 ▲4.16
Image Sizes /wp-admin/tools.php?page=kgmdisablethumbnails3.2930.76
Image Quality /wp-admin/tools.php?page=kgmimgquality3.2934.21
Image Threshold&EXIF /wp-admin/tools.php?page=kgmdisablethreshold3.3032.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Thumbnails, Threshold and Image Options
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.70 ▼0.021.80 ▲0.1435.61 ▼3.66
Dashboard /wp-admin2,204 ▲265.56 ▼0.1695.32 ▼20.1741.80 ▼4.43
Posts /wp-admin/edit.php2,112 ▲91.94 ▼0.0139.01 ▼3.4835.77 ▲0.73
Add New Post /wp-admin/post-new.php1,535 ▲923.19 ▼0.37665.04 ▲28.9451.59 ▲2.97
Media Library /wp-admin/upload.php1,412 ▲154.21 ▲0.1394.23 ▼6.0641.66 ▲1.35
Image Sizes /wp-admin/tools.php?page=kgmdisablethumbnails8862.0025.0632.97
Image Quality /wp-admin/tools.php?page=kgmimgquality8192.0027.5431.66
Image Threshold&EXIF /wp-admin/tools.php?page=kgmdisablethreshold8581.9923.3430.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: disable threshold, disable images, thumbnails, disable thumbnails, disable...

disable-thumbnails-and-threshold/disable-thumbnails-and-thresold.php 92% from 13 tests

"Disable Thumbnails, Threshold and Image Options" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-thumbnails-and-threshold.php" instead of "disable-thumbnails-and-thresold.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected458 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP57792451
CSS1007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity14.33
▷ Minimum class complexity6.00
▷ Maximum class complexity25.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.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 files were detected