79% tagline-rotator

Code Review | Tagline Rotator

WordPress plugin Tagline Rotator scored79%from 54 tests.

About plugin

  • Plugin page: tagline-rotator
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2008
  • Latest release: Jan 25, 2012
  • Number of updates: 39
  • Update frequency: every 32.6 days
  • Top authors: vhauri (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /9,230 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.13MB] [CPU: ▼14.59ms] Passed 4 tests

Server-side resources used by Tagline Rotator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▼0.6021.14 ▼20.91
Dashboard /wp-admin3.33 ▲0.0341.57 ▼7.24
Posts /wp-admin/edit.php3.38 ▲0.0244.42 ▼1.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.53 ▼28.30
Media Library /wp-admin/upload.php3.25 ▲0.0234.98 ▼1.61
Tagline Rotator /wp-admin/options-general.php?page=taglineoptions3.1926.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Tagline Rotator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6914.48 ▼0.201.91 ▲0.1637.82 ▼0.63
Dashboard /wp-admin2,210 ▲214.86 ▼0.07112.77 ▼6.0643.45 ▼0.28
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0141.36 ▼0.0933.02 ▼2.06
Add New Post /wp-admin/post-new.php1,536 ▼623.14 ▲5.00646.73 ▲26.5863.00 ▲14.49
Media Library /wp-admin/upload.php1,392 ▲104.20 ▼0.0197.41 ▼1.0639.47 ▼3.28
Tagline Rotator /wp-admin/options-general.php?page=taglineoptions8272.0524.6431.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=taglineoptions
    • > Warning in wp-content/plugins/tagline-rotator/tagline-rotator.php+114
    Invalid argument supplied for foreach()

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tagline-rotator/tagline-rotator.php:35

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: random, header, taglines

tagline-rotator/tagline-rotator.php Passed 13 tests

The main PHP script in "Tagline Rotator" version 2.3 is automatically included on every request by WordPress
106 characters long description:
Displays a random tagline from a database list. You can manage taglines through Settings->Tagline Rotator.

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 plugin101 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12725101

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected