78% xpd-reduce-image-filesize

Code Review | XPD Reduce Image Filesize

WordPress plugin XPD Reduce Image Filesize scored78%from 54 tests.

About plugin

  • Plugin page: xpd-reduce-image-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2013
  • Latest release: Jun 16, 2013
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: fzmaster (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by XPD Reduce Image Filesize
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.22 ▼0.20
Dashboard /wp-admin3.32 ▲0.0143.24 ▼6.54
Posts /wp-admin/edit.php3.37 ▲0.0147.18 ▼2.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.86 ▼0.23
Media Library /wp-admin/upload.php3.24 ▲0.0136.05 ▼1.01
XPD Image Quality /wp-admin/options-general.php?page=xpd_reduz_qualidade_imagem_menu3.1828.27

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for XPD Reduce Image Filesize
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.361.70 ▼0.0244.41 ▼2.73
Dashboard /wp-admin2,193 ▲165.55 ▼0.0692.01 ▲7.0340.86 ▼1.40
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0339.30 ▲4.9935.17 ▼4.83
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲0.36644.07 ▲8.9253.36 ▼17.37
Media Library /wp-admin/upload.php1,398 ▼24.16 ▼0.08101.98 ▼4.0147.32 ▼0.21
XPD Image Quality /wp-admin/options-general.php?page=xpd_reduz_qualidade_imagem_menu7862.0324.3627.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=xpd_reduz_qualidade_imagem_menu
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=xpd_reduz_qualidade_imagem_menu
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/xpd-reduce-image-filesize/xpd_rifs.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

xpd-reduce-image-filesize/xpd_rifs.php 92% from 13 tests

Analyzing the main PHP file in "XPD Reduce Image Filesize" version 1.0
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("xpd-reduce-image-filesize.php" instead of "xpd_rifs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181848

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.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