74% wp-bluelevel-plugnplay-preloader

Code Review | WP BlueLevel PlugNPlay Preloader

WordPress plugin WP BlueLevel PlugNPlay Preloader scored74%from 54 tests.

About plugin

  • Plugin page: wp-bluelevel-plug...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.5.5
  • WordPress version: 6.3.1
  • First release: Jul 29, 2016
  • Latest release: Jul 29, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: bluelevel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 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
Install script ran successfully

Server metrics [RAM: ▼1.72MB] [CPU: ▼51.47ms] Passed 4 tests

A check of server-side resources used by WP BlueLevel PlugNPlay Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.226.26 ▼39.74
Dashboard /wp-admin2.30 ▼1.0011.21 ▼41.45
Posts /wp-admin/edit.php2.30 ▼1.0610.95 ▼45.89
Add New Post /wp-admin/post-new.php2.30 ▼3.599.42 ▼78.80
Media Library /wp-admin/upload.php2.30 ▼0.939.66 ▼28.60

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

Browser metrics Passed 4 tests

WP BlueLevel PlugNPlay Preloader: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,426 ▲66513.82 ▼0.5415.09 ▲13.4543.92 ▼0.69
Dashboard /wp-admin2,218 ▲475.72 ▲0.0687.09 ▼5.8336.68 ▼3.67
Posts /wp-admin/edit.php2,125 ▲222.44 ▲0.4439.99 ▼2.6334.38 ▼2.41
Add New Post /wp-admin/post-new.php1,541 ▲1523.66 ▲0.22706.65 ▲42.7555.10 ▼2.52
Media Library /wp-admin/upload.php1,417 ▲144.44 ▲0.2597.96 ▼10.8144.88 ▲0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style 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 clock handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× 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/wp-bluelevel-plugnplay-preloader/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: free preloader, animations, preloader, preloader plugin, beautiful preloader...

wp-bluelevel-plugnplay-preloader/index.php 85% from 13 tests

The main file in "WP BlueLevel PlugNPlay Preloader" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-bluelevel-plugnplay-preloader.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin361 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1549348
JavaScript10012
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.01
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
No PNG files were detected