79% real-post-slider-lite

Code Review | Real Post Slider Lite

WordPress plugin Real Post Slider Lite scored79%from 54 tests.

About plugin

  • Plugin page: real-post-slider-...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Aug 21, 2015
  • Number of updates: 62
  • Update frequency: every 8.7 days
  • Top authors: vk011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /10,170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.39ms] Passed 4 tests

An overview of server-side resources used by Real Post Slider Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0645.49 ▲5.07
Dashboard /wp-admin3.35 ▲0.0151.34 ▼12.59
Posts /wp-admin/edit.php3.40 ▲0.0447.04 ▼5.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.59 ▼15.64
Media Library /wp-admin/upload.php3.27 ▲0.0435.85 ▼3.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 17 new options
New WordPress options
theysaidso_admin_options
db_upgraded
vkrpsl_cat_name
can_compress_scripts
vkrpsl_char_limit
vkrpsl_visible
vkrpsl_thumb_height
widget_theysaidso_widget
vkrpsl_ascdesc
vkrpsl_slider_width
...

Browser metrics Passed 4 tests

Checking browser requirements for Real Post Slider Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲14113.70 ▼0.656.42 ▲4.5544.02 ▼4.58
Dashboard /wp-admin2,210 ▲194.85 ▼0.04111.46 ▲1.8242.88 ▲2.51
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0037.66 ▼2.9334.12 ▼3.20
Add New Post /wp-admin/post-new.php1,522 ▼623.36 ▲4.85656.98 ▲29.4652.62 ▼15.80
Media Library /wp-admin/upload.php1,395 ▲74.40 ▲0.20101.12 ▼5.3242.63 ▼1.66
Real Post Slider Lite /wp-admin/real-post-slider-lite.php260.440.0916.69

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • vkrpsl_slider_width
    • vkrpsl_order
    • vkrpsl_autoplay_speed
    • widget_recent-comments
    • db_upgraded
    • vkrpsl_thumb_width
    • vkrpsl_visible
    • can_compress_scripts
    • vkrpsl_ascdesc
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-post-slider-lite/real-post-slider-lite.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/real-post-slider-lite.php
    • > Network (severe)
    wp-admin/real-post-slider-lite.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: slider, posts

real-post-slider-lite/real-post-slider-lite.php Passed 13 tests

"Real Post Slider Lite" version 2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Works as a post slider (lite version)

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
No dangerous file extensions were detected477 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1378305
JavaScript290122
CSS111050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/prev.png3.42KB0.57KB▼ 83.19%
css/images/next.png3.36KB0.58KB▼ 82.69%