78% lightbox-ga

Code Review | GAPlugin - LightBox

WordPress plugin GAPlugin - LightBox scored78%from 54 tests.

About plugin

  • Plugin page: lightbox-ga
  • Plugin version: 0.01.00.00
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Feb 6, 2021
  • Number of updates: 10
  • Update frequency: every 26.2 days
  • Top authors: gautierantoine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /481 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.40ms] Passed 4 tests

This is a short check of server-side resources used by GAPlugin - LightBox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.93 ▼6.23
Dashboard /wp-admin3.38 ▲0.0347.70 ▼22.25
Posts /wp-admin/edit.php3.49 ▲0.1450.82 ▲1.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.57 ▼18.68
Media Library /wp-admin/upload.php3.30 ▲0.0740.28 ▲6.11
GAPlugin /wp-admin/admin.php?page=gap-admin-page3.2731.70
Lightbox /wp-admin/admin.php?page=gap-admin-page-lightbox3.2732.66

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for GAPlugin - LightBox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲9114.48 ▼0.102.85 ▲0.8543.44 ▼0.17
Dashboard /wp-admin2,237 ▲494.91 ▼0.94100.61 ▼5.8679.90 ▲35.58
Posts /wp-admin/edit.php2,117 ▲251.98 ▼0.0335.11 ▼3.5339.50 ▲8.87
Add New Post /wp-admin/post-new.php1,547 ▲3323.04 ▲5.50725.27 ▲28.3951.77 ▼6.53
Media Library /wp-admin/upload.php1,413 ▲254.23 ▲0.03100.70 ▲1.3682.20 ▲34.25
GAPlugin /wp-admin/admin.php?page=gap-admin-page7842.0227.8128.49
Lightbox /wp-admin/admin.php?page=gap-admin-page-lightbox8402.1425.9425.75

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/lightbox-ga/gaplugin-lightbox-plugin.php
    • > /wp-content/plugins/lightbox-ga/includes/lightbox-css.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GAPlugin\\AdminPage' not found in wp-content/plugins/lightbox-ga/includes/LightBox.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% 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
4 plugin tags: navigation, gallery, images, lightbox

lightbox-ga/gaplugin-lightbox-plugin.php 85% from 13 tests

The entry point to "GAPlugin - LightBox" version 0.01.00.00 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("lightbox-ga.php" instead of "gaplugin-lightbox-plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected644 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP42092240
JavaScript21264130
SVG402109
CSS12096
PO File1192937
Markdown111032

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods23100.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin