84% wordpress-plugin-random-post-slider

Code Review | wordpress plugin random post slider

WordPress plugin wordpress plugin random post slider scored 84% from 54 tests.

About plugin

  • Plugin page: wordpress-plugin-...
  • Plugin version: 10.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: May 30, 2011
  • Latest release: Dec 1, 2022
  • Number of updates: 69
  • Update frequency: every 60.9 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 37,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.39ms] Passed 4 tests

Analyzing server-side resources used by wordpress plugin random post slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.57 ▼4.81
Dashboard /wp-admin3.40 ▲0.0947.92 ▲2.61
Posts /wp-admin/edit.php3.45 ▲0.0948.40 ▲2.22
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.29 ▼5.56
Media Library /wp-admin/upload.php3.32 ▲0.0939.44 ▲3.65
Random post slider /wp-admin/options-general.php?page=wordpress-plugin-random-post-slider/wordpress-plugin-random-post-slider.php3.2933.58

Server storage [IO: ▲0.09MB] [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: 9 new files
Database: no new tables, 18 new options
New WordPress options
theysaidso_admin_options
gopiplus_query_slider
gopiplus_displayreadmore
gopiplus_displayimage
gopiplus_query_posts_orderby
gopiplus_displaydate
gopiplus_query_posts_order
gopiplus_displaytag
gopiplus_query_posts_category
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by wordpress plugin random post slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.59 ▼0.705.29 ▲3.6539.97 ▼3.38
Dashboard /wp-admin2,210 ▲285.79 ▼0.09101.77 ▼20.9536.71 ▼12.96
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0134.96 ▼5.8033.92 ▼2.12
Add New Post /wp-admin/post-new.php1,525 ▼1423.20 ▼0.01614.57 ▲5.8366.68 ▲11.56
Media Library /wp-admin/upload.php1,395 ▲44.18 ▲0.0396.33 ▼7.4745.13 ▼2.09
Random post slider /wp-admin/options-general.php?page=wordpress-plugin-random-post-slider/wordpress-plugin-random-post-slider.php9142.0625.1324.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wordpress-plugin-random-post-slider/wordpress-plugin-random-post-slider.php:533

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wordpress, random, post, slider, plugin

wordpress-plugin-random-post-slider/wordpress-plugin-random-post-slider.php Passed 13 tests

The main file in "wordpress plugin random post slider" v. 10.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Wordpress plugin random post slider create a post slider on the wordpress website.

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
No dangerous file extensions were detected1,825 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11131231,096
PHP27727491
PO File24864125
CSS1109113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin