10% best-splash

Code Review | Best Splash

WordPress plugin Best Splash scored10%from 54 tests.

About plugin

  • Plugin page: best-splash
  • Plugin version: 1.0
  • PHP compatiblity: 4.7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2017
  • Latest release: Aug 27, 2018
  • Number of updates: 7
  • Update frequency: every 47.4 days
  • Top authors: meetsohail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,040 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/best-splash/best-splash.php+29
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.91MB] [CPU: ▼50.61ms] Passed 4 tests

An overview of server-side resources used by Best Splash
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.84 ▼34.87
Dashboard /wp-admin2.10 ▼1.216.84 ▼43.75
Posts /wp-admin/edit.php2.10 ▼1.265.78 ▼39.27
Add New Post /wp-admin/post-new.php2.10 ▼3.795.98 ▼84.55
Media Library /wp-admin/upload.php2.10 ▼1.145.92 ▼27.07

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
bestSplash
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Best Splash
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.29 ▼1.091.57 ▼0.1941.95 ▼7.34
Dashboard /wp-admin2,225 ▲345.85 ▲0.95106.64 ▼1.1141.51 ▼2.29
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0034.82 ▼2.5835.24 ▲5.32
Add New Post /wp-admin/post-new.php1,546 ▲1323.36 ▲0.19636.77 ▼44.5851.15 ▼0.43
Media Library /wp-admin/upload.php1,404 ▲164.21 ▼0.0594.72 ▼8.4140.24 ▼3.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/best-splash/best-splash.php+29
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-splash/core/init.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/best-splash/admin/admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === best-splash === )
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
You can take inspiration from this readme.txt

best-splash/best-splash.php Passed 13 tests

"Best Splash" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Keep any WordPress site look cool, attractive, and engage your readers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin932 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2287510610
PHP3413226
CSS11296

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin