90% image-text-widget

Code Review | Image & Text Widget

WordPress plugin Image & Text Widget scored 90% from 54 tests.

About plugin

  • Plugin page: image-text-widget
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.1
  • WordPress version: 5.9.2
  • First release: Jul 14, 2014
  • Latest release: Apr 28, 2015
  • Number of updates: 11
  • Update frequency: every 26.4 days
  • Top authors: dfactory (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 24,454 total downloads


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
The plugin installed gracefully, with no errors

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

Server-side resources used by Image & Text Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0950.89 ▼0.16
Dashboard /wp-admin3.44 ▲0.0334.67 ▲0.34
Posts /wp-admin/edit.php3.66 ▲0.0238.54 ▼0.91
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.67 ▼1,232.40
Media Library /wp-admin/upload.php3.32 ▲0.0227.59 ▲2.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Image & Text Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5115.12 ▼0.886.27 ▼1.542.92 ▲0.11
Dashboard /wp-admin2,895 ▲376.07 ▼0.22115.77 ▼15.08153.68 ▼13.58
Posts /wp-admin/edit.php2,685 ▼63.25 ▲0.0164.19 ▼2.30146.72 ▲1.34
Add New Post /wp-admin/post-new.php1,752 ▲9121.59 ▲5.89460.06 ▲42.22156.84 ▲3.47
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.05157.55 ▲14.80194.78 ▲2.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_image_text_widget

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

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


Plugin configuration Passed 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
10 plugin tags: upload, images, responsive, uploader, widget-only...

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

The entry point to "Image & Text Widget" version 1.0.3 is a PHP file that has certain tags in its header comment area
131 characters long description:
Image & Text Widget is an easy to use plugin that uses the native WordPress media manager to add image & text widgets to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected603 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File2227525156

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity43.50
▷ Minimum class complexity2.00
▷ Maximum class complexity85.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There are no PNG files in this plugin