89% wp-nonstop-smushit

Code Review | Disable Bulk Smush Limit of WP Smushit

WordPress plugin Disable Bulk Smush Limit of WP Smushit scored89%from 54 tests.

About plugin

  • Plugin page: wp-nonstop-smushit
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Oct 25, 2019
  • Number of updates: 12
  • Update frequency: every 21.1 days
  • Top authors: obiplabon (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /21,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Disable Bulk Smush Limit of WP Smushit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.48 ▼6.42
Dashboard /wp-admin3.32 ▲0.0242.51 ▼10.98
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▲3.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.34 ▼10.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.02 ▼2.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Disable Bulk Smush Limit of WP Smushit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.32 ▼1.201.65 ▼0.3546.80 ▲1.43
Dashboard /wp-admin2,231 ▲424.83 ▼1.09109.33 ▼14.8038.16 ▼5.07
Posts /wp-admin/edit.php2,114 ▲252.03 ▲0.0441.31 ▲3.8236.95 ▲1.50
Add New Post /wp-admin/post-new.php1,562 ▲1823.32 ▲4.91622.48 ▼21.0256.05 ▲2.01
Media Library /wp-admin/upload.php1,413 ▲284.23 ▲0.0195.47 ▼7.1743.23 ▲0.22

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: wp smushit, optimization, image, disable, performance...

wp-nonstop-smushit/wp-nonstop-smushit.php 85% from 13 tests

The main PHP file in "Disable Bulk Smush Limit of WP Smushit" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

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
No dangerous file extensions were detected69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1156948
JavaScript14021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods240.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin