84% ligery

Code Review | Ligery

WordPress plugin Ligery scored84%from 54 tests.

About plugin

  • Plugin page: ligery
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2019
  • Latest release: Jul 23, 2023
  • Number of updates: 13
  • Update frequency: every 101.5 days
  • Top authors: hatul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.85ms] Passed 4 tests

An overview of server-side resources used by Ligery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.99 ▲0.36
Dashboard /wp-admin3.31 ▲0.0043.67 ▼3.29
Posts /wp-admin/edit.php3.36 ▲0.0044.98 ▼1.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.45 ▼10.54
Media Library /wp-admin/upload.php3.23 ▲0.0031.99 ▲0.06

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: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ligery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.70 ▼0.896.03 ▲4.1441.87 ▼8.01
Dashboard /wp-admin2,209 ▲185.83 ▲0.9499.41 ▼4.8437.97 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.74 ▲3.2334.09 ▼1.33
Add New Post /wp-admin/post-new.php1,514 ▼517.63 ▼5.43669.34 ▼3.4755.90 ▼16.21
Media Library /wp-admin/upload.php1,382 ▼94.24 ▲0.0197.10 ▲1.8142.18 ▼0.35

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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ligery/ligery.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gallery, lity, ligery, lightbox, images

ligery/ligery.php Passed 13 tests

"Ligery" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Lightweight, accessible and responsive lightbox for Wordpress based on Lity.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin814 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1314645598
CSS42613188
Markdown19018
PHP12910

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin