94% disable-big-image-threshold

Code Review | Disable "BIG Image" Threshold

WordPress plugin Disable "BIG Image" Threshold scored 94% from 54 tests.

About plugin

  • Plugin page: disable-big-image...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.8.1
  • First release: Oct 25, 2019
  • Latest release: Mar 4, 2021
  • Number of updates: 4
  • Update frequency: every 124.0 days
  • Top authors: desrosj (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active / 34,445 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼145.38ms] Passed 4 tests

A check of server-side resources used by Disable "BIG Image" Threshold
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0037.37 ▲3.66
Dashboard /wp-admin3.06 ▲0.0134.97 ▼10.26
Posts /wp-admin/edit.php3.11 ▲0.0145.93 ▼0.74
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.19 ▼570.68
Media Library /wp-admin/upload.php3.00 ▲0.0033.26 ▲0.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable "BIG Image" Threshold
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.20 ▲0.617.97 ▼1.5252.44 ▲6.68
Dashboard /wp-admin2,967 ▲365.87 ▼0.09144.52 ▼5.58104.59 ▼6.14
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0063.89 ▼9.9586.66 ▼4.14
Add New Post /wp-admin/post-new.php1,500 ▼18318.56 ▲0.04403.81 ▼10.55100.75 ▼6.17
Media Library /wp-admin/upload.php1,810 ▼05.06 ▲0.06147.43 ▼8.62116.47 ▲0.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-big-image-threshold/disable-big-image-threshold.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: upload, big images, images

disable-big-image-threshold/disable-big-image-threshold.php Passed 13 tests

The main PHP file in "Disable "BIG Image" Threshold" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Disables the "BIG image" threshold added in WordPress 5.3.

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
Everything looks great! No dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin