90% smntcs-deactivate-image-compression

Code Review | SMNTCS Deactivate image compression

WordPress plugin SMNTCS Deactivate image compression scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-deactivate...
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.4
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Oct 15, 2023
  • Number of updates: 13
  • Update frequency: every 119.9 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,660 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.00MB] [CPU: ▼3.99ms] Passed 4 tests

This is a short check of server-side resources used by SMNTCS Deactivate image compression
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.41 ▼3.43
Dashboard /wp-admin3.31 ▲0.0050.42 ▲0.51
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▼2.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.86 ▼10.37
Media Library /wp-admin/upload.php3.23 ▲0.0041.11 ▲7.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

SMNTCS Deactivate image compression: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.101.73 ▼0.2143.68 ▼4.25
Dashboard /wp-admin2,198 ▲185.61 ▼0.0789.95 ▲0.3643.25 ▲1.09
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0836.93 ▼0.8633.83 ▼0.23
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▼0.06704.42 ▲55.3349.56 ▼3.87
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.03110.18 ▲11.1247.50 ▲5.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: image compression

smntcs-deactivate-image-compression/smntcs-deactivate-image-compression.php Passed 13 tests

The main file in "SMNTCS Deactivate image compression" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Deactivate the WordPress default image compression.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin164 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON20076
Markdown126037
XML25234
YAML1009
PHP12208

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.33
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin