100% admin-expand-image-widgets

Code Review | Admin Expand Image Widgets

WordPress plugin Admin Expand Image Widgets scored 100% from 54 tests.

About plugin

  • Plugin page: admin-expand-imag...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7.2
  • WordPress version: 5.8.1
  • First release: Feb 9, 2020
  • Latest release: May 24, 2021
  • Number of updates: 5
  • Update frequency: every 180.2 days
  • Top authors: treeflips (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 451 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Admin Expand Image Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0027.82 ▲4.03
Dashboard /wp-admin3.06 ▼0.0034.54 ▼7.05
Posts /wp-admin/edit.php3.12 ▲0.0133.43 ▼2.07
Add New Post /wp-admin/post-new.php5.42 ▼0.0171.97 ▼714.24
Media Library /wp-admin/upload.php3.01 ▲0.0026.37 ▲1.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Expand Image Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.51 ▼0.566.05 ▲0.8775.59 ▼2.54
Dashboard /wp-admin2,927 ▲316.11 ▼0.01114.22 ▼16.20158.66 ▼13.09
Posts /wp-admin/edit.php2,743 ▲33.22 ▼0.0261.66 ▲2.06146.56 ▲7.66
Add New Post /wp-admin/post-new.php3,758 ▼5018.70 ▲0.06430.59 ▼25.90161.18 ▼0.30
Media Library /wp-admin/upload.php1,749 ▼35.53 ▲0.02140.81 ▲5.27187.35 ▲2.34

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
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: images, widgets

admin-expand-image-widgets/admin-expand-image-widgets.php 92% from 13 tests

The primary PHP file in "Admin Expand Image Widgets" version 0.1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Success! There were no dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141716
Markdown1305

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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