90% admin-expand-image-widgets

Code Review | Admin Expand Image Widgets

WordPress plugin Admin Expand Image Widgets scored90%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: 6.3.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 /699 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Admin Expand Image Widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.58 ▼1.17
Dashboard /wp-admin3.31 ▲0.0051.41 ▼5.59
Posts /wp-admin/edit.php3.36 ▲0.0053.58 ▼2.35
Add New Post /wp-admin/post-new.php5.89 ▲0.00114.49 ▲8.87
Media Library /wp-admin/upload.php3.24 ▲0.0037.62 ▼3.26

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Expand Image Widgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▲0.052.21 ▲0.4246.28 ▲1.98
Dashboard /wp-admin2,192 ▲155.62 ▼0.0687.29 ▼18.9642.15 ▼2.44
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0539.79 ▼2.0947.76 ▲9.56
Add New Post /wp-admin/post-new.php1,533 ▲723.33 ▲0.19667.90 ▼54.1453.03 ▼2.57
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.13101.62 ▼8.4141.39 ▼4.79

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Congratulations! This plugin passed the SRP 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)
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: images, widgets

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

This is the main PHP file of "Admin Expand Image Widgets" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • 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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin