78% vertical-marquee-plugin

Code Review | Vertical marquee plugin

WordPress plugin Vertical marquee plugin scored78%from 54 tests.

About plugin

  • Plugin page: vertical-marquee-...
  • Plugin version: 7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 1, 2012
  • Latest release: Oct 29, 2023
  • Number of updates: 40
  • Update frequency: every 103.4 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /79,465 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.08MB] [CPU: ▼6.26ms] Passed 4 tests

A check of server-side resources used by Vertical marquee plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.90 ▲4.43
Dashboard /wp-admin3.38 ▲0.0846.92 ▼6.69
Posts /wp-admin/edit.php3.43 ▲0.0849.09 ▼0.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.63 ▼11.31
Media Library /wp-admin/upload.php3.31 ▲0.0835.36 ▼6.72
Vertical marquee /wp-admin/options-general.php?page=vertical-marquee-plugin3.3234.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 11 new options
New tables
wp_verticalmarquee
New WordPress options
vm_setting3
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_verticalmarquee
vm_setting1
widget_recent-posts
vm_setting2
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vertical marquee plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.72 ▲0.101.89 ▲0.1443.69 ▲1.53
Dashboard /wp-admin2,199 ▲225.64 ▼0.0285.05 ▼12.8738.84 ▼0.22
Posts /wp-admin/edit.php2,101 ▼21.96 ▲0.0039.13 ▼1.2938.48 ▲1.09
Add New Post /wp-admin/post-new.php1,551 ▲2518.19 ▼3.26587.82 ▼160.1364.80 ▼2.82
Media Library /wp-admin/upload.php1,404 ▲74.16 ▲0.0793.57 ▼16.8942.29 ▼7.71
Vertical marquee /wp-admin/options-general.php?page=vertical-marquee-plugin9392.0326.8327.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_verticalmarquee
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vertical-marquee-plugin/pages/content-management-add.php
    • > /wp-content/plugins/vertical-marquee-plugin/pages/content-management-show.php
    • > /wp-content/plugins/vertical-marquee-plugin/pages/content-setting.php
    • > /wp-content/plugins/vertical-marquee-plugin/pages/content-management-edit.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/vertical-marquee-plugin/vertical-marquee-plugin.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vertical-marquee-plugin/vertical-marquee-plugin.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

vertical-marquee-plugin/vertical-marquee-plugin.php Passed 13 tests

The main file in "Vertical marquee plugin" v. 7.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
130 characters long description:
You can use this vertical marquee plugin to make your text scroll upward or downwards. This plugin will work all leading browsers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,264 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP610038934
PO File2122180298
JavaScript13131
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin