94% progressive-images

Code Review | Progressive Images

WordPress plugin Progressive Images scored 94% from 54 tests.

About plugin

  • Plugin page: progressive-images
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.4-4.7.5
  • WordPress version: 5.8.1
  • First release: May 18, 2017
  • Latest release: May 20, 2017
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: jacobarriola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 659 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

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

This is a short check of server-side resources used by Progressive Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.50 ▲14.50
Dashboard /wp-admin3.08 ▲0.0253.48 ▲12.16
Posts /wp-admin/edit.php3.13 ▲0.0246.10 ▼1.73
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.20 ▼565.23
Media Library /wp-admin/upload.php3.02 ▲0.0232.00 ▼3.94

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Progressive Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.90 ▼0.059.31 ▼0.1245.87 ▲1.22
Dashboard /wp-admin2,973 ▲395.88 ▼0.05139.44 ▼9.13110.82 ▲0.01
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0277.55 ▲6.4384.28 ▼9.38
Add New Post /wp-admin/post-new.php1,500 ▼17218.63 ▼0.27401.99 ▼11.32107.89 ▼6.65
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.01159.51 ▲10.48116.49 ▼2.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Progressive_Images\\add_action() in wp-content/plugins/progressive-images/src/enqueue.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Progressive_Images\\add_filter() in wp-content/plugins/progressive-images/src/image-replacement.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
2 plugin tags: performance, images

progressive-images/progressive-images.php Passed 13 tests

The principal PHP file in "Progressive Images" v. 0.0.5 is loaded by WordPress automatically on each request
44 characters long description:
Load images after everything else has loaded

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin222 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP4335083
JavaScript37852
JSON20034
Markdown16033
Sass13019
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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
Namespaces1
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin