94% rt-slider

Code Review | RT Slider

WordPress plugin RT Slider scored 94% from 54 tests.

About plugin

  • Plugin page: rt-slider
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.8.1
  • First release: Jun 26, 2016
  • Latest release: Oct 25, 2017
  • Number of updates: 19
  • Update frequency: every 25.6 days
  • Top authors: rohitink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 59,043 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼142.35ms] Passed 4 tests

Analyzing server-side resources used by RT Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1741.24 ▲19.84
Dashboard /wp-admin3.11 ▲0.0648.92 ▲1.29
Posts /wp-admin/edit.php3.16 ▲0.0645.97 ▼0.92
Add New Post /wp-admin/post-new.php5.47 ▲0.0494.57 ▼564.67
Media Library /wp-admin/upload.php3.05 ▲0.0529.72 ▼5.10

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RT Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,721 ▲12516.17 ▲0.248.71 ▼0.2745.53 ▼6.77
Dashboard /wp-admin2,985 ▲515.89 ▼0.28140.69 ▼7.64111.96 ▼12.10
Posts /wp-admin/edit.php2,760 ▲212.70 ▲0.0068.94 ▼1.5387.42 ▼5.84
Add New Post /wp-admin/post-new.php1,509 ▼16118.60 ▼0.59373.51 ▼4.93112.48 ▲6.92
Media Library /wp-admin/upload.php1,767 ▼405.01 ▼0.01151.65 ▼1.19118.82 ▼4.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rt-slider/trunk/rt-slider.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rt-slider/rt-slider.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === rt-slider === )
Please take inspiration from this readme.txt

rt-slider/rt-slider.php 92% from 13 tests

This is the main PHP file of "RT Slider" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

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
Success! There were no dangerous files found in this plugin758 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP223068758

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods425.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin