90% caption-single-product-images

Code Review | Caption Single Product Images

WordPress plugin Caption Single Product Images scored90%from 54 tests.

About plugin

  • Plugin page: caption-single-pr...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2021
  • Latest release: Jul 9, 2021
  • Number of updates: 7
  • Update frequency: every 2.4 days
  • Top authors: knaveenchand (71.43%)saigeetha (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Caption Single Product Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.42 ▲4.05
Dashboard /wp-admin3.31 ▼0.0447.29 ▼17.06
Posts /wp-admin/edit.php3.36 ▲0.0048.65 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.18 ▼15.18
Media Library /wp-admin/upload.php3.23 ▲0.0036.34 ▼0.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Caption Single Product Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.121.71 ▲0.1142.47 ▲2.02
Dashboard /wp-admin2,203 ▲185.88 ▲0.9796.17 ▼8.3239.77 ▼0.47
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0239.61 ▼0.0434.82 ▼8.68
Add New Post /wp-admin/post-new.php1,522 ▼1123.09 ▼0.09672.89 ▼6.0955.35 ▼6.94
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0399.89 ▼0.7240.74 ▼0.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: captions, woocommerce

caption-single-product-images/caption-single-product-images.php 92% from 13 tests

The main file in "Caption Single Product Images" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.4")

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
There were no executable files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected