84% soliloquy-scheduled-slides

Code Review | Scheduled Slides for Soliloquy

WordPress plugin Scheduled Slides for Soliloquy scored84%from 54 tests.

About plugin

  • Plugin page: soliloquy-schedul...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2013
  • Latest release: Apr 11, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jameslaws (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /4,912 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.06ms] Passed 4 tests

A check of server-side resources used by Scheduled Slides for Soliloquy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.57 ▲4.30
Dashboard /wp-admin3.34 ▲0.0460.62 ▲8.57
Posts /wp-admin/edit.php3.39 ▲0.0449.62 ▲0.04
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.49 ▼10.13
Media Library /wp-admin/upload.php3.27 ▲0.0436.28 ▲1.54

Server storage [IO: ▲0.01MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Scheduled Slides for Soliloquy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.74 ▲0.521.91 ▼0.1452.11 ▲3.91
Dashboard /wp-admin2,206 ▲214.84 ▼0.05103.52 ▼2.4340.77 ▼2.36
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0337.43 ▲1.7035.61 ▲0.37
Add New Post /wp-admin/post-new.php1,514 ▼517.59 ▼5.78664.32 ▲16.9952.66 ▼8.01
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0496.09 ▼3.0444.15 ▼1.92

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_action() in wp-content/plugins/soliloquy-scheduled-slides/soliloquy-scheduled-slides.php:11

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
6 plugin tags: scheduled, slider, soliloquy, expiration, schedule...

soliloquy-scheduled-slides/soliloquy-scheduled-slides.php Passed 13 tests

The principal PHP file in "Scheduled Slides for Soliloquy" v. 1.0 is loaded by WordPress automatically on each request
121 characters long description:
Add a begin and expiration date to slides. Expired and slides set for the future will not show up in your slider display.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12622152

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions11
▷ Named functions11100.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
There are no PNG files in this plugin