74% lity-responsive-lightboxes

Code Review | Lity - Responsive Lightboxes

WordPress plugin Lity - Responsive Lightboxes scored74%from 54 tests.

About plugin

  • Plugin page: lity-responsive-l...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Jul 9, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: eherman24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /618 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▲2.33ms] Passed 4 tests

A check of server-side resources used by Lity - Responsive Lightboxes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2545.40 ▲5.04
Dashboard /wp-admin3.55 ▲0.2553.32 ▲0.02
Posts /wp-admin/edit.php3.67 ▲0.3158.62 ▲5.55
Add New Post /wp-admin/post-new.php6.13 ▲0.2598.84 ▼1.29
Media Library /wp-admin/upload.php3.48 ▲0.2543.55 ▲9.03
Lity - Responsive Lightboxes /wp-admin/options-general.php?page=lity-options3.4953.09
Scheduled Actions /wp-admin/tools.php?page=action-scheduler3.6551.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 107 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_groups
wp_actionscheduler_claims
wp_actionscheduler_logs
New WordPress options
schema-ActionScheduler_LoggerSchema
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
schema-ActionScheduler_StoreSchema
action_scheduler_hybrid_store_demarkation
theysaidso_admin_options
widget_theysaidso_widget
action_scheduler_lock_async-request-runner
...

Browser metrics Passed 4 tests

Checking browser requirements for Lity - Responsive Lightboxes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.34 ▼0.031.67 ▼0.0242.80 ▲1.74
Dashboard /wp-admin2,206 ▲265.57 ▼0.0890.59 ▲4.1739.77 ▼9.47
Posts /wp-admin/edit.php2,108 ▲81.98 ▼0.0339.20 ▼4.1435.22 ▼5.82
Add New Post /wp-admin/post-new.php1,544 ▲723.30 ▲4.93598.11 ▼16.3647.50 ▼15.04
Media Library /wp-admin/upload.php1,408 ▲84.19 ▼0.1095.80 ▼11.9645.08 ▼5.72
Lity - Responsive Lightboxes /wp-admin/options-general.php?page=lity-options1,1882.0637.7039.92
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2381.7826.7729.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 4 tables
    • wp_actionscheduler_claims
    • wp_actionscheduler_logs
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
  • Zombie WordPress options detected upon uninstall: 10 options
    • db_upgraded
    • schema-ActionScheduler_StoreSchema
    • schema-ActionScheduler_LoggerSchema
    • action_scheduler_hybrid_store_demarkation
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • action_scheduler_lock_async-request-runner
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/ActionScheduler_OptionLock.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/actions/ActionScheduler_NullAction.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/lity-responsive-lightboxes/includes/action-scheduler/classes/ActionScheduler_AdminView.php:7

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: responsive, captions, lightbox

lity-responsive-lightboxes/lity.php 85% from 13 tests

The principal PHP file in "Lity - Responsive Lightboxes" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("lity-responsive-lightboxes.php" instead of "lity.php")

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 detected10,003 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
PHP861,9105,0846,657
JavaScript71971642,533
CSS81057813

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.27
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces3
Traits0
Classes79
▷ Abstract classes1518.99%
▷ Concrete classes6481.01%
▷ Final classes46.25%
Methods610
▷ Static methods6210.16%
▷ Public methods45774.92%
▷ Protected methods13421.97%
▷ Private methods193.11%
Functions28
▷ Named functions1864.29%
▷ Anonymous functions1035.71%
Constants37
▷ Global constants410.81%
▷ Class constants3389.19%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin