89% double-image

Code Review | Double Image for Gutenberg

WordPress plugin Double Image for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: double-image
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2019
  • Latest release: Feb 21, 2019
  • Number of updates: 8
  • Update frequency: every 3.5 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.26ms] Passed 4 tests

A check of server-side resources used by Double Image for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.61 ▼3.86
Dashboard /wp-admin3.38 ▲0.0344.83 ▼18.63
Posts /wp-admin/edit.php3.49 ▲0.1448.72 ▲1.83
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.41 ▲4.23
Media Library /wp-admin/upload.php3.30 ▲0.0734.13 ▼0.38

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
doubleimage_date_installed

Browser metrics Passed 4 tests

Checking browser requirements for Double Image for Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.80 ▲0.621.89 ▼0.0244.09 ▼7.40
Dashboard /wp-admin2,209 ▲214.85 ▼0.0696.43 ▼23.5438.21 ▼4.90
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0338.40 ▲2.2734.73 ▼0.14
Add New Post /wp-admin/post-new.php6,191 ▲4,67721.98 ▲4.52872.25 ▲176.2265.90 ▲7.41
Media Library /wp-admin/upload.php1,388 ▲34.18 ▲0.0497.60 ▼4.9941.68 ▼4.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • doubleimage_date_installed
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
No output text or server-side errors detected on direct access of PHP files

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

Optimizations

Plugin configuration 93% from 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
7 plugin tags: blocks, gutenberg blocks, photo gallery, page builder, gallery...

double-image/double-image.php 85% from 13 tests

The main file in "Double Image for Gutenberg" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected415 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8101345412
CSS2002
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods26
▷ Static methods13.85%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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 images were found in this plugin