83% wp-easy-and-supper-preloader

Code Review | WP easy and supper Preloader

WordPress plugin WP easy and supper Preloader scored83%from 54 tests.

About plugin

  • Plugin page: wp-easy-and-suppe...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Dec 12, 2016
  • Number of updates: 4
  • Update frequency: every 106.5 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.97ms] Passed 4 tests

A check of server-side resources used by WP easy and supper Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0125.35 ▼16.98
Dashboard /wp-admin3.39 ▲0.0947.75 ▼0.65
Posts /wp-admin/edit.php3.44 ▲0.0953.62 ▲1.08
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.60 ▼11.31
Media Library /wp-admin/upload.php3.31 ▲0.0938.46 ▲1.41
Preloader Settings /wp-admin/options-general.php?page=preloader-settings3.2831.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP easy and supper Preloader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,051 ▲29013.77 ▼0.5817.75 ▲15.2541.43 ▼6.37
Dashboard /wp-admin2,215 ▲355.70 ▲0.0190.06 ▲3.7939.90 ▼4.35
Posts /wp-admin/edit.php2,128 ▲252.25 ▲0.2340.92 ▼0.9335.32 ▼4.12
Add New Post /wp-admin/post-new.php1,543 ▲1723.81 ▲0.69655.35 ▼10.8034.76 ▼20.01
Media Library /wp-admin/upload.php1,417 ▲174.39 ▲0.21100.32 ▼10.5142.93 ▼4.45
Preloader Settings /wp-admin/options-general.php?page=preloader-settings1,2482.2845.0729.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just 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/wp-easy-and-supper-preloader/main-functions.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
  • Screenshots: Please add images for these screenshots: #1 (Admin setting), #2 (style 1), #3 (style 2), #4 (style 3)
The official readme.txt is a good inspiration

wp-easy-and-supper-preloader/main-functions.php 92% from 13 tests

The principal PHP file in "WP easy and supper Preloader" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-easy-and-supper-preloader.php" instead of "main-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,916 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS26173211,465
PHP221825438
JavaScript36213

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin