84% wp-featherlight

Code Review | WP Featherlight - A Simple jQuery Lightbox

WordPress plugin WP Featherlight - A Simple jQuery Lightbox scored84%from 54 tests.

About plugin

  • Plugin page: wp-featherlight
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.0
  • WordPress version: 6.3.1
  • First release: May 31, 2015
  • Latest release: Dec 8, 2020
  • Number of updates: 32
  • Update frequency: every 63.1 days
  • Top authors: wpsitecare (56.25%)cipherdevgroup (34.38%)ozzyr (15.63%)

Code review

54 tests

User reviews

95 reviews

Install metrics

60,000+ active /486,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by WP Featherlight - A Simple jQuery Lightbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.22 ▲1.01
Dashboard /wp-admin3.38 ▲0.0753.74 ▲2.36
Posts /wp-admin/edit.php3.49 ▲0.1352.53 ▲1.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.29 ▼9.86
Media Library /wp-admin/upload.php3.30 ▲0.0738.67 ▲5.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Featherlight - A Simple jQuery Lightbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.50 ▼1.0912.44 ▲10.7245.75 ▲3.03
Dashboard /wp-admin2,198 ▲185.56 ▼0.1484.76 ▼4.3136.27 ▼7.68
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0535.69 ▼2.1234.73 ▲1.88
Add New Post /wp-admin/post-new.php6,245 ▲4,71218.87 ▼4.31919.13 ▲223.4760.15 ▼9.64
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.01101.56 ▼7.1548.21 ▼1.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/wp-featherlight/admin/views/meta-box.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_featherlight() in wp-content/plugins/wp-featherlight/includes/constants.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
You can look at the official readme.txt

wp-featherlight/wp-featherlight.php Passed 13 tests

"WP Featherlight - A Simple jQuery Lightbox" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
An ultra lightweight jQuery lightbox for WordPress images and galleries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,417 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102393581,495
CSS41228476
PHP7100555326
Markdown3610120

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods2871.79%
▷ Protected methods1128.21%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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 files were detected