84% title-rotator

Code Review | TITLE ROTATOR

WordPress plugin TITLE ROTATOR scored84%from 54 tests.

About plugin

  • Plugin page: title-rotator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jul 8, 2013
  • Latest release: Jul 5, 2014
  • Number of updates: 7
  • Update frequency: every 51.7 days
  • Top authors: arkapravamajumder (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /1,239 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by TITLE ROTATOR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.57 ▲0.71
Dashboard /wp-admin3.31 ▲0.0043.57 ▼5.22
Posts /wp-admin/edit.php3.36 ▲0.0050.28 ▲1.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.50 ▼1.01
Media Library /wp-admin/upload.php3.23 ▲0.0035.37 ▲0.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for TITLE ROTATOR
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.382.20 ▲0.3539.79 ▼4.94
Dashboard /wp-admin2,209 ▲185.91 ▲1.01107.33 ▲1.5640.61 ▼0.40
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.84 ▼1.7734.19 ▼0.06
Add New Post /wp-admin/post-new.php1,514 ▼2017.46 ▼5.73657.24 ▼16.5753.09 ▲0.31
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0793.10 ▼13.1543.60 ▼1.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just 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 add_action() in wp-content/plugins/title-rotator/title-rotator.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.gif)
The official readme.txt might help

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

The entry point to "TITLE ROTATOR" version 1.0 is a PHP file that has certain tags in its header comment area
55 characters long description:
This plugin will rotate your content between title tag.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18927

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin