83% disable-lightning-headfix

Code Review | Disable Lightning Headfix

WordPress plugin Disable Lightning Headfix scored 83% from 54 tests.

About plugin

  • Plugin page: disable-lightning...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ryoraspp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 553 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
Installer ran successfully

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

This is a short check of server-side resources used by Disable Lightning Headfix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.52 ▼18.49
Dashboard /wp-admin3.31 ▲0.0054.97 ▲4.28
Posts /wp-admin/edit.php3.36 ▲0.0053.56 ▼4.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.41 ▼2.00
Media Library /wp-admin/upload.php3.23 ▲0.0038.23 ▼3.25

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Lightning Headfix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲2513.20 ▼1.601.93 ▼0.1742.56 ▼2.17
Dashboard /wp-admin2,206 ▲94.87 ▲0.00112.38 ▼1.8342.46 ▼5.71
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0040.04 ▲3.7135.66 ▲2.22
Add New Post /wp-admin/post-new.php1,533 ▼023.33 ▲0.13698.31 ▲17.4864.81 ▼3.57
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0297.73 ▼4.2643.79 ▼0.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-lightning-headfix/lightning-headfix-disabel.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === disable-lightning-headfix === )
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

disable-lightning-headfix/lightning-headfix-disabel.php 85% from 13 tests

The entry point to "Disable Lightning Headfix" version 1... is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
  • Main file name: Name the main plugin file the same as the plugin slug ("disable-lightning-headfix.php" instead of "lightning-headfix-disabel.php")

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
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1295

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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

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