94% header-marquee

Code Review | Header-Marquee

WordPress plugin Header-Marquee scored 94% from 54 tests.

About plugin

  • Plugin page: header-marquee
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.1
  • WordPress version: 5.8.1
  • First release: Dec 14, 2017
  • Latest release: Dec 24, 2017
  • Number of updates: 41
  • Update frequency: every 0.5 days
  • Top authors: bestonline1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 5,243 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼134.65ms] Passed 4 tests

This is a short check of server-side resources used by Header-Marquee
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2135.14 ▲8.07
Dashboard /wp-admin3.17 ▲0.1150.03 ▲4.77
Posts /wp-admin/edit.php3.22 ▲0.1049.49 ▼0.47
Add New Post /wp-admin/post-new.php5.53 ▲0.0997.85 ▼544.95
Media Library /wp-admin/upload.php3.11 ▲0.1138.24 ▲2.07
Header-Marquee /wp-admin/options-general.php?page=header-marquee3.1340.68

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 16 new options
New WordPress options
header_marquee_data_7
header_marquee_data_3
header_marquee_data_10
header_marquee_data_5
header_marquee_data_9
header_marquee_data_8
header_marquee_data
header_marquee_data_4
header_marquee_data_11
header_marquee_data_15
...

Browser metrics Passed 4 tests

An overview of browser requirements for Header-Marquee
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,743 ▲10616.20 ▲0.2610.29 ▲0.9651.58 ▼8.02
Dashboard /wp-admin3,008 ▲756.61 ▲0.47153.41 ▼19.61122.49 ▼0.76
Posts /wp-admin/edit.php2,780 ▲412.99 ▲0.3077.03 ▲11.58110.23 ▲18.86
Add New Post /wp-admin/post-new.php1,711 ▲21119.41 ▲1.06371.62 ▼5.38134.51 ▲22.66
Media Library /wp-admin/upload.php1,848 ▲415.46 ▲0.44138.13 ▼17.87125.88 ▼9.89
Header-Marquee /wp-admin/options-general.php?page=header-marquee2,8218.41226.15128.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-marquee/header-marquee.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

header-marquee/header-marquee.php Passed 13 tests

The principal PHP file in "Header-Marquee" v. 1.1 is loaded by WordPress automatically on each request
115 characters long description:
This plugin will show a moving text (Marquee). The displayed text can be changed from Settings/Header-Marquee menu.

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
Good job! No executable or dangerous file extensions detected755 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP14015484
PO File25467135
SVG11085
JavaScript22042
CSS1009

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon-256x256.png23.10KB8.14KB▼ 64.76%
icon-128x128.png7.43KB3.50KB▼ 52.95%