78% rim-slider

Code Review | Rim Slider

WordPress plugin Rim Slider scored78%from 54 tests.

About plugin

  • Plugin page: rim-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-2.5
  • WordPress version: 6.3.1
  • First release: Aug 20, 2013
  • Latest release: Aug 20, 2013
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: Rimaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,445 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼15.32ms] Passed 4 tests

A check of server-side resources used by Rim Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0854.71 ▲13.18
Dashboard /wp-admin3.36 ▲0.0649.52 ▲0.64
Posts /wp-admin/edit.php3.41 ▲0.0649.62 ▼4.26
Add New Post /wp-admin/post-new.php3.19 ▼2.6936.40 ▼63.96
Media Library /wp-admin/upload.php3.28 ▲0.0640.42 ▲6.32
Add New /wp-admin/post-new.php?post_type=rimaz_slider3.1438.84
Rim Sliders /wp-admin/edit.php?post_type=rimaz_slider3.3340.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Rim Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18913.82 ▼0.5611.21 ▲9.3755.88 ▲10.09
Dashboard /wp-admin2,235 ▲585.49 ▼0.3083.47 ▼7.3740.91 ▲0.42
Posts /wp-admin/edit.php2,143 ▲402.05 ▲0.0635.34 ▼1.8934.23 ▼3.97
Add New Post /wp-admin/post-new.php1,562 ▲3323.09 ▼0.46679.21 ▲53.2259.20 ▲3.76
Media Library /wp-admin/upload.php1,440 ▲404.16 ▼0.0099.71 ▼6.3249.47 ▼1.90
Add New /wp-admin/post-new.php?post_type=rimaz_slider2,2907.55180.1567.01
Rim Sliders /wp-admin/edit.php?post_type=rimaz_slider1,1241.9736.7234.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+214
    Undefined index: rim_slider_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+183
    Undefined offset: 0
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+187
    Undefined offset: 1
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+191
    Undefined offset: 2
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+195
    Undefined offset: 3
    • > GET request to /wp-admin/post-new.php?post_type=rimaz_slider
    • > Notice in wp-content/plugins/rim-slider/rim_slider.php+199
    Undefined offset: 4

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rim-slider/rim_slider.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === rim-slider === )
Please take inspiration from this readme.txt

rim-slider/rim_slider.php 92% from 13 tests

Analyzing the main PHP file in "Rim Slider" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rim-slider.php" instead of "rim_slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,975 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS266631,484
SVG100284
PHP18425195
JavaScript241112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
img/pagination.png1.36KB0.58KB▼ 57.53%