90% remove-broken-images

Code Review | Remove Broken Images

WordPress plugin Remove Broken Images scored90%from 54 tests.

About plugin

  • Plugin page: remove-broken-images
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2021
  • Latest release: Jul 23, 2023
  • Number of updates: 11
  • Update frequency: every 55.3 days
  • Top authors: room34 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,542 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Remove Broken Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.14 ▼8.53
Dashboard /wp-admin3.31 ▲0.0148.31 ▼6.34
Posts /wp-admin/edit.php3.36 ▲0.0048.80 ▼1.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.66 ▼21.86
Media Library /wp-admin/upload.php3.24 ▲0.0040.82 ▲0.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Remove Broken Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲14913.47 ▼0.889.55 ▲7.9444.70 ▲5.45
Dashboard /wp-admin2,197 ▲235.65 ▲0.0088.91 ▼6.4441.23 ▼6.81
Posts /wp-admin/edit.php2,102 ▲52.00 ▲0.0033.88 ▼5.7736.58 ▲0.56
Add New Post /wp-admin/post-new.php1,530 ▲423.07 ▼0.06665.13 ▼5.4852.91 ▼5.63
Media Library /wp-admin/upload.php1,399 ▲54.09 ▼0.0397.29 ▼13.5546.03 ▲0.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: missing, broken, deleted, missing images, images...

remove-broken-images/remove-broken-images.php 92% from 13 tests

The main file in "Remove Broken Images" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected20 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript210714
PHP18246

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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 functions1100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin