94% image-caption-on-featured

Code Review | Image Caption on Featured

WordPress plugin Image Caption on Featured scored 94% from 54 tests.

About plugin

  • Plugin page: image-caption-on-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 5.8.1
  • First release: May 21, 2015
  • Latest release: May 22, 2015
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: jens hunt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,047 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Image Caption on Featured
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0133.98 ▼8.12
Dashboard /wp-admin3.06 ▲0.0139.03 ▼10.01
Posts /wp-admin/edit.php3.12 ▲0.0151.33 ▲4.42
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.72 ▼592.74
Media Library /wp-admin/upload.php3.01 ▲0.0136.34 ▲0.21

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

Image Caption on Featured: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.90 ▲0.349.27 ▼0.1551.06 ▲1.03
Dashboard /wp-admin2,970 ▲395.90 ▼0.04150.87 ▼2.54108.25 ▼10.08
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0174.62 ▲4.9998.34 ▲4.54
Add New Post /wp-admin/post-new.php1,683 ▼018.75 ▲0.01400.05 ▲7.56115.87 ▼2.52
Media Library /wp-admin/upload.php1,810 ▲65.05 ▲0.04152.14 ▼8.73127.98 ▼4.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 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/image-caption-on-featured/image-caption-on-featured.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

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
4 plugin tags: featured, caption, image, thumbnail

image-caption-on-featured/image-caption-on-featured.php Passed 13 tests

The primary PHP file in "Image Caption on Featured" version 0.1 is used by WordPress to initiate all plugin functionality
61 characters long description:
Put the image caption on your featured image. Easy and light.

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 detected43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1251829
CSS17314

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.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 images were found in this plugin