99% broken-image-checker

Code Review | Broken Image Checker

WordPress plugin Broken Image Checker scored 99% from 54 tests.

About plugin

  • Plugin page: broken-image-checker
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Nov 26, 2015
  • Latest release: Mar 6, 2016
  • Number of updates: 20
  • Update frequency: every 5.1 days
  • Top authors: saurav.rox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 2,462 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.43ms] Passed 4 tests

Analyzing server-side resources used by Broken Image Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0232.89 ▼0.20
Dashboard /wp-admin3.08 ▲0.0247.06 ▲2.26
Posts /wp-admin/edit.php3.13 ▲0.0247.21 ▲4.10
Add New Post /wp-admin/post-new.php5.44 ▲0.0088.92 ▼584.55
Media Library /wp-admin/upload.php3.02 ▲0.0232.00 ▼3.23

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Broken Image Checker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12616.10 ▲0.4312.35 ▲0.5145.69 ▼0.06
Dashboard /wp-admin2,986 ▲586.10 ▲0.14151.29 ▼65.31116.50 ▼1.12
Posts /wp-admin/edit.php2,755 ▲162.74 ▲0.0172.53 ▲3.0569.31 ▼18.34
Add New Post /wp-admin/post-new.php1,629 ▼4321.65 ▲2.71295.38 ▼97.84109.27 ▲0.96
Media Library /wp-admin/upload.php1,826 ▲195.27 ▲0.26158.75 ▲7.93114.48 ▼9.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Broken Image Checker) image not found
The official readme.txt is a good inspiration

broken-image-checker/broken-image-checker.php 92% from 13 tests

"Broken Image Checker" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected160 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2194491
CSS16359
JavaScript11010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin