90% wpc-image-widget

Code Review | Image Widget by Angie Makes

WordPress plugin Image Widget by Angie Makes scored90%from 54 tests.

About plugin

  • Plugin page: wpc-image-widget
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.7.4
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: May 12, 2017
  • Number of updates: 16
  • Update frequency: every 39.9 days
  • Top authors: cbaldelomar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /19,407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.86ms] Passed 4 tests

An overview of server-side resources used by Image Widget by Angie Makes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.31 ▼0.74
Dashboard /wp-admin3.31 ▲0.0145.95 ▼0.66
Posts /wp-admin/edit.php3.36 ▲0.0148.54 ▲5.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.84 ▼6.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▲0.70

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_wpc_image
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Image Widget by Angie Makes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.67 ▼0.951.73 ▲0.1644.09 ▲5.61
Dashboard /wp-admin2,206 ▲174.85 ▼0.04107.53 ▼7.4441.31 ▲1.22
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0239.46 ▼3.1834.86 ▼1.46
Add New Post /wp-admin/post-new.php1,521 ▼723.21 ▲4.90588.66 ▼35.1060.86 ▲4.54
Media Library /wp-admin/upload.php1,388 ▲64.15 ▼0.04112.46 ▲11.3751.94 ▲9.21

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_wpc_image

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
6 plugin tags: image, picture, image widget, photo widget, picture widget...

wpc-image-widget/wpc-image-widget.php Passed 13 tests

Analyzing the main PHP file in "Image Widget by Angie Makes" version 1.7
29 characters long description:
Add image to any widget area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected338 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13019150
PHP23110143
Markdown118028
CSS12017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin