84% rollover-tab

Code Review | Rollover Tab

WordPress plugin Rollover Tab scored84%from 54 tests.

About plugin

  • Plugin page: rollover-tab
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2012
  • Latest release: May 8, 2015
  • Number of updates: 19
  • Update frequency: every 56.0 days
  • Top authors: Sabaoh (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /13,924 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.88ms] Passed 4 tests

This is a short check of server-side resources used by Rollover Tab
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.97 ▲4.72
Dashboard /wp-admin3.33 ▼0.0250.02 ▼19.87
Posts /wp-admin/edit.php3.38 ▲0.0248.85 ▲0.07
Add New Post /wp-admin/post-new.php5.91 ▲0.02100.97 ▲5.81
Media Library /wp-admin/upload.php3.25 ▲0.0236.51 ▼0.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rollover Tab
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.41 ▲0.032.09 ▲0.0535.43 ▼9.59
Dashboard /wp-admin2,186 ▲95.63 ▼0.0697.77 ▲0.8342.82 ▼1.95
Posts /wp-admin/edit.php2,100 ▼32.15 ▲0.1342.40 ▼1.6635.58 ▼5.46
Add New Post /wp-admin/post-new.php1,528 ▼923.17 ▲4.81651.11 ▲17.4758.42 ▼6.88
Media Library /wp-admin/upload.php1,397 ▼04.26 ▲0.0998.73 ▲0.8942.64 ▼2.57

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 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/rollover-tab/rollover-tab.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Graphics will match white-background themes.)
You can take inspiration from this readme.txt

rollover-tab/rollover-tab.php 92% from 13 tests

The main PHP file in "Rollover Tab" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 386 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,262 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1914,010
PHP14770140
CSS10093
PO File12119

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions6
▷ Named functions6100.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
11 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tab-inactive-right.png0.32KB0.42KB0.00%
images/tab-left.png0.31KB0.54KB0.00%
images/tab-active-center.png0.19KB0.20KB0.00%
images/tab-right.png0.35KB0.54KB0.00%
images/tab-fadein.png0.33KB0.56KB0.00%