84% content-text-slider-on-post

Code Review | Content text slider on post

WordPress plugin Content text slider on post scored84%from 54 tests.

About plugin

  • Plugin page: content-text-slid...
  • Plugin version: 8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Jan 3, 2012
  • Latest release: Oct 29, 2023
  • Number of updates: 45
  • Update frequency: every 96.0 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /34,250 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Content text slider on post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼1.23
Dashboard /wp-admin3.31 ▲0.0146.20 ▼2.87
Posts /wp-admin/edit.php3.37 ▲0.0146.64 ▲0.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.83 ▼7.46
Media Library /wp-admin/upload.php3.24 ▲0.0135.31 ▼2.42
Content text slider /wp-admin/options-general.php?page=content-text-slider-on-post3.2731.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 11 new options
New tables
wp_ctsop_plugin
New WordPress options
ctsop_height_display_length_s2
ctsop_waitseconds
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
ctsop_height_display_length_s1
ctsop_speed
ctsop_height_display_length_s3
...

Browser metrics Passed 4 tests

A check of browser resources used by Content text slider on post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.27 ▼0.081.74 ▲0.0237.19 ▼4.24
Dashboard /wp-admin2,199 ▲215.55 ▼0.0688.50 ▼22.5738.33 ▼6.60
Posts /wp-admin/edit.php2,104 ▲71.95 ▼0.0140.83 ▲2.0935.70 ▼1.68
Add New Post /wp-admin/post-new.php1,540 ▲1418.31 ▼4.70665.66 ▲5.4069.44 ▲8.18
Media Library /wp-admin/upload.php1,404 ▲74.20 ▲0.01103.38 ▲3.5441.49 ▼2.15
Content text slider /wp-admin/options-general.php?page=content-text-slider-on-post9842.2726.9625.75

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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 shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/content-text-slider-on-post/pages/content-setting.php
    • > /wp-content/plugins/content-text-slider-on-post/pages/content-add.php
    • > /wp-content/plugins/content-text-slider-on-post/pages/content-edit.php
    • > /wp-content/plugins/content-text-slider-on-post/content-text-slider-on-post.php
    • > /wp-content/plugins/content-text-slider-on-post/pages/content-show.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: wordpress, text, slider, content, plugin

content-text-slider-on-post/content-text-slider-on-post.php 92% from 13 tests

The main PHP script in "Content text slider on post" version 8.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 297 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,232 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP612066853
PO File2117146263
JavaScript31368116

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin