83% wp-featherlight-disabled

Code Review | WP Featherlight Disabled

WordPress plugin WP Featherlight Disabled scored83%from 54 tests.

About plugin

  • Plugin page: wp-featherlight-d...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Jan 31, 2022
  • Number of updates: 11
  • Update frequency: every 53.7 days
  • Top authors: treeflips (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /4,279 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.06MB] [CPU: ▼10.42ms] Passed 4 tests

A check of server-side resources used by WP Featherlight Disabled
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.28 ▲2.66
Dashboard /wp-admin3.37 ▲0.0347.57 ▼16.43
Posts /wp-admin/edit.php3.49 ▲0.1350.11 ▲0.05
Add New Post /wp-admin/post-new.php5.96 ▲0.0779.21 ▼27.25
Media Library /wp-admin/upload.php3.30 ▲0.0737.81 ▲1.95

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
featherlight_plugin_db_updated

Browser metrics Passed 4 tests

Checking browser requirements for WP Featherlight Disabled
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.051.69 ▼0.2047.11 ▲4.14
Dashboard /wp-admin2,209 ▲214.86 ▼0.02100.50 ▼11.8239.29 ▼7.09
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0440.46 ▲2.4935.79 ▲2.54
Add New Post /wp-admin/post-new.php6,237 ▲4,71721.68 ▼1.65897.29 ▲263.3452.03 ▲1.53
Media Library /wp-admin/upload.php1,391 ▲94.21 ▲0.0198.35 ▲0.3243.67 ▲2.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • featherlight_plugin_db_updated
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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-disabled/admin/views/meta-box.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_featherlight() in wp-content/plugins/wp-featherlight-disabled/includes/constants.php:11

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can look at the official readme.txt

wp-featherlight-disabled/wp-featherlight.php 85% from 13 tests

The principal PHP file in "WP Featherlight Disabled" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-featherlight-disabled.php" instead of "wp-featherlight.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,418 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102393581,495
CSS41228476
PHP7102559340
Markdown2550107

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin