84% rkp-awesome-preloader

Code Review | RKP Awesome Preloader

WordPress plugin RKP Awesome Preloader scored84%from 54 tests.

About plugin

  • Plugin page: rkp-awesome-prelo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Apr 7, 2015
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: rkpolin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /670 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.04MB] [CPU: ▼7.14ms] Passed 4 tests

A check of server-side resources used by RKP Awesome Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.20 ▲2.26
Dashboard /wp-admin3.34 ▲0.0444.19 ▼7.54
Posts /wp-admin/edit.php3.39 ▲0.0446.71 ▲2.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.55 ▼23.79
Media Library /wp-admin/upload.php3.26 ▲0.0433.28 ▲0.50
Preloader Options /wp-admin/options-general.php?page=preloader-settings3.2331.71

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RKP Awesome Preloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲26314.05 ▼0.5611.18 ▲9.4737.58 ▼5.01
Dashboard /wp-admin2,232 ▲505.08 ▼0.78110.24 ▲8.6942.28 ▼1.59
Posts /wp-admin/edit.php2,114 ▲282.32 ▲0.3341.65 ▲4.1737.58 ▲4.53
Add New Post /wp-admin/post-new.php1,531 ▼523.33 ▲0.14676.61 ▲62.2635.57 ▼9.75
Media Library /wp-admin/upload.php1,414 ▲234.51 ▲0.2895.49 ▼2.4339.45 ▼3.58
Preloader Options /wp-admin/options-general.php?page=preloader-settings1,4002.6657.5729.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rkp-awesome-preloader/plugins-main.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === rkp-awesome-preloader === )
The official readme.txt might help

rkp-awesome-preloader/plugins-main.php 92% from 13 tests

This is the main PHP file of "RKP Awesome Preloader" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rkp-awesome-preloader.php" instead of "plugins-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected890 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS21730642
PHP12617169
JavaScript31079

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin