94% retina-stripper

Code Review | Retina Stripper

WordPress plugin Retina Stripper scored 94% from 54 tests.

About plugin

  • Plugin page: retina-stripper
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.2
  • WordPress version: 5.8.1
  • First release: May 18, 2016
  • Latest release: May 18, 2016
  • Number of updates: 7
  • Update frequency: every 37.3 days
  • Top authors: dfavor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 975 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.00MB] [CPU: ▼141.96ms] Passed 4 tests

A check of server-side resources used by Retina Stripper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.99 ▲14.54
Dashboard /wp-admin3.06 ▲0.0144.37 ▼2.27
Posts /wp-admin/edit.php3.11 ▲0.0046.57 ▼2.29
Add New Post /wp-admin/post-new.php5.42 ▼0.0293.84 ▼555.10
Media Library /wp-admin/upload.php3.00 ▲0.0035.19 ▼8.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Retina Stripper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.10 ▲0.108.09 ▼0.3348.30 ▼2.67
Dashboard /wp-admin2,967 ▲365.91 ▼0.05136.57 ▼11.42120.08 ▲4.22
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0060.92 ▼10.1096.32 ▲9.19
Add New Post /wp-admin/post-new.php1,500 ▼18318.56 ▲2.45369.30 ▼36.80107.41 ▼24.23
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.04146.83 ▼25.41120.01 ▼8.71

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
The plugin uninstalled completely, with no zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/retina-stripper/retina-stripper.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (No screenshots as this is a zero config plugin.)
You can take inspiration from this readme.txt

retina-stripper/retina-stripper.php Passed 13 tests

Analyzing the main PHP file in "Retina Stripper" version 1.4
34 characters long description:
Strip enqueued copies of retina.js

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142214

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected