84% selected-colorbox-image

Code Review | Selected Colorbox Image

WordPress plugin Selected Colorbox Image scored84%from 54 tests.

About plugin

  • Plugin page: selected-colorbox...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 19, 2015
  • Latest release: May 21, 2015
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: vipul188 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.10ms] Passed 4 tests

This is a short check of server-side resources used by Selected Colorbox Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.41 ▲3.91
Dashboard /wp-admin3.34 ▼0.0146.23 ▼11.08
Posts /wp-admin/edit.php3.39 ▲0.0345.41 ▲3.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.77 ▼20.92
Media Library /wp-admin/upload.php3.26 ▲0.0336.04 ▲4.31

Server storage [IO: ▲0.28MB] [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: 30 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Selected Colorbox Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21914.20 ▼0.178.68 ▲6.9445.06 ▼0.68
Dashboard /wp-admin2,238 ▲475.17 ▲0.30102.28 ▼3.2439.28 ▲1.63
Posts /wp-admin/edit.php2,121 ▲322.55 ▲0.5234.69 ▼6.7135.02 ▼0.15
Add New Post /wp-admin/post-new.php1,696 ▲15422.63 ▲4.32661.90 ▲40.2053.73 ▼10.31
Media Library /wp-admin/upload.php1,420 ▲324.49 ▲0.31105.01 ▲2.6650.04 ▲8.42

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/selected-colorbox-image/allimg.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: gallery, colorbox, datatable

selected-colorbox-image/allimg.php 85% from 13 tests

The entry point to "Selected Colorbox Image" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("selected-colorbox-image.php" instead of "allimg.php")

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 plugin1,612 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42281141,171
CSS45839281
PHP11322160

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/loading_background.png0.13KB0.15KB0.00%
img/forward_enabled_hover.png1.35KB0.58KB▼ 56.93%
img/sort_asc_disabled.png2.85KB0.25KB▼ 91.36%
img/back_enabled_hover.png1.34KB0.60KB▼ 55.56%
css/images/controls.png1.23KB1.28KB0.00%