94% ev-gold-preloader

Code Review | Ev Gold Preloader

WordPress plugin Ev Gold Preloader scored 94% from 54 tests.

About plugin

  • Plugin page: ev-gold-preloader
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 5.9.2
  • First release: Jan 5, 2017
  • Latest release: Jan 6, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: evplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 518 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.05MB] [CPU: ▼326.70ms] Passed 4 tests

Server-side resources used by Ev Gold Preloader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.5555.84 ▼75.23
Dashboard /wp-admin3.49 ▲0.0837.90 ▼2.10
Posts /wp-admin/edit.php3.71 ▲0.0743.42 ▲4.62
Add New Post /wp-admin/post-new.php6.95 ▼0.02100.56 ▼1,229.89
Media Library /wp-admin/upload.php3.36 ▲0.0727.05 ▲0.43
EV Gold Preloader /wp-admin/options-general.php?page=ev-gold-preloader3.3124.30

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Ev Gold Preloader: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,947 ▲19316.03 ▲0.4513.50 ▲7.1716.73 ▲13.83
Dashboard /wp-admin2,884 ▲236.11 ▼0.08139.24 ▼0.97168.60 ▼46.90
Posts /wp-admin/edit.php2,693 ▲23.23 ▲0.0164.80 ▼0.94143.22 ▼1.62
Add New Post /wp-admin/post-new.php1,784 ▲3220.38 ▼0.54445.33 ▼29.30170.12 ▼12.35
Media Library /wp-admin/upload.php1,703 ▲85.52 ▲0.01175.45 ▲12.13194.65 ▲4.29
EV Gold Preloader /wp-admin/options-general.php?page=ev-gold-preloader1,8263.5278.96133.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-gold-preloader
    • > Notice in wp-content/plugins/ev-gold-preloader/helpers/helper.php+108
    Undefined index: lblTitle
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-gold-preloader
    • > Warning in wp-content/plugins/ev-gold-preloader/helpers/helper.php+108
    count(): Parameter must be an array or an object that implements Countable
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ev-gold-preloader
    • > Notice in wp-content/plugins/ev-gold-preloader/helpers/helper.php+82
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=ev-gold-preloader
    • > Notice in wp-content/plugins/ev-gold-preloader/helpers/helper.php+104
    Undefined index: lbl
    • > GET request to /wp-admin/options-general.php?page=ev-gold-preloader
    • > Notice in wp-content/plugins/ev-gold-preloader/helpers/helper.php+109
    Undefined index: value

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: preloader plugin, free preloaders, best preloader, css preloader, nice preloader...

ev-gold-preloader/index.php 85% from 13 tests

This is the main PHP file of "Ev Gold Preloader" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ev-gold-preloader.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin798 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP411755459
JavaScript55952227
CSS124499
HTML20213

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.60
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin