84% vertical-marquee-post-title

Code Review | Vertical marquee post title

WordPress plugin Vertical marquee post title scored84%from 54 tests.

About plugin

  • Plugin page: vertical-marquee-...
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 3, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 30
  • Update frequency: every 124.7 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /19,520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.88ms] Passed 4 tests

An overview of server-side resources used by Vertical marquee post title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.14 ▼1.17
Dashboard /wp-admin3.41 ▲0.1147.56 ▼6.19
Posts /wp-admin/edit.php3.46 ▲0.1153.00 ▼0.64
Add New Post /wp-admin/post-new.php5.99 ▲0.1185.32 ▼17.86
Media Library /wp-admin/upload.php3.34 ▲0.1134.42 ▼2.31
Vertical marquee post title /wp-admin/options-general.php?page=vertical-marquee-post-title/vertical-marquee-post-title.php3.3031.22

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 13 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
vmpt_title
vmpt_setting2
vmpt_setting
vmpt_setting3
widget_vertical-marquee-post-title
theysaidso_admin_options
can_compress_scripts
...

Browser metrics Passed 4 tests

Vertical marquee post title: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.20 ▼1.364.98 ▲3.3445.50 ▲4.11
Dashboard /wp-admin2,228 ▲254.85 ▼0.0399.06 ▼5.9340.79 ▼0.45
Posts /wp-admin/edit.php2,083 ▼202.03 ▼0.0335.54 ▼10.2036.44 ▼0.40
Add New Post /wp-admin/post-new.php1,553 ▲823.39 ▲0.35595.79 ▼78.0146.74 ▼4.16
Media Library /wp-admin/upload.php1,398 ▼24.24 ▼0.00101.74 ▼12.8343.02 ▼5.37
Vertical marquee post title /wp-admin/options-general.php?page=vertical-marquee-post-title/vertical-marquee-post-title.php1,0962.0523.4928.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_vertical-marquee-post-title
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vertical-marquee-post-title/vertical-marquee-post-title.php:324

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: vertical, marquee, plugin

vertical-marquee-post-title/vertical-marquee-post-title.php 92% from 13 tests

This is the main PHP file of "Vertical marquee post title" version 4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)

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
There were no executable files found in this plugin493 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27018354
PO File255129139

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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