90% dropdown-and-scrollable-text

Code Review | Dropdown and scrollable Text

WordPress plugin Dropdown and scrollable Text scored 90% from 54 tests.

About plugin

  • Plugin page: dropdown-and-scro...
  • Plugin version: 2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.3
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: May 21, 2022
  • Number of updates: 10
  • Update frequency: every 116.1 days
  • Top authors: pedramn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,450 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.57ms] Passed 4 tests

An overview of server-side resources used by Dropdown and scrollable Text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.17 ▼7.09
Dashboard /wp-admin3.35 ▲0.0447.26 ▼1.78
Posts /wp-admin/edit.php3.40 ▲0.0449.72 ▲1.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.11 ▼6.63
Media Library /wp-admin/upload.php3.27 ▲0.0435.84 ▲1.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dropdown and scrollable Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.76 ▼0.887.58 ▲5.8045.22 ▲1.25
Dashboard /wp-admin2,209 ▲215.86 ▼0.02114.00 ▲1.5679.78 ▲33.78
Posts /wp-admin/edit.php2,101 ▲92.02 ▼0.0334.86 ▼7.7731.61 ▼6.53
Add New Post /wp-admin/post-new.php1,527 ▲1317.54 ▼0.09757.87 ▲74.7449.31 ▼15.51
Media Library /wp-admin/upload.php1,403 ▲154.23 ▲0.1098.97 ▼8.9180.70 ▲37.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: dropdown text, text box, scrolling text

dropdown-and-scrollable-text/index.php 92% from 13 tests

"Dropdown and scrollable Text" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dropdown-and-scrollable-text.php" instead of "index.php")

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 plugin322 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP11015202
CSS27088
JavaScript31832

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png1.88KB1.04KB▼ 44.58%