74% ss-preloader

Code Review | SS Preloader

WordPress plugin SS Preloader scored74%from 54 tests.

About plugin

  • Plugin page: ss-preloader
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 2, 2016
  • Latest release: Mar 2, 2016
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: sohail.act (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,267 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.96MB] [CPU: ▼53.00ms] Passed 4 tests

An overview of server-side resources used by SS Preloader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.84 ▼32.31
Dashboard /wp-admin2.05 ▼1.265.83 ▼45.48
Posts /wp-admin/edit.php2.05 ▼1.315.74 ▼40.59
Add New Post /wp-admin/post-new.php2.05 ▼3.845.01 ▼93.62
Media Library /wp-admin/upload.php2.05 ▼1.185.35 ▼28.87

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SS Preloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲27214.94 ▲0.561.90 ▲0.4148.11 ▲5.68
Dashboard /wp-admin2,380 ▲1926.64 ▲1.74132.93 ▲28.9740.22 ▼0.39
Posts /wp-admin/edit.php2,289 ▲2003.63 ▲1.6253.52 ▲11.9834.65 ▼2.98
Add New Post /wp-admin/post-new.php1,547 ▲1923.53 ▲0.38653.22 ▲58.5330.22 ▼26.24
Media Library /wp-admin/upload.php1,428 ▲434.35 ▲0.1481.46 ▼21.0540.46 ▼4.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the JavaScript handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ss-preloader/ss-preloader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: prealoader, pre-loader, pre-loading, ss preloader, loader

ss-preloader/ss-preloader.php 92% from 13 tests

The main PHP script in "SS Preloader" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 338 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected117 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110021106
JavaScript20311

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.42MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png5.11KB1.69KB▼ 66.88%
assets/banner-772x250..png413.08KB118.62KB▼ 71.28%
assets/icon-128x128.png6.96KB4.08KB▼ 41.42%