84% vavilon-preloader

Code Review | Vavilon Preloader

WordPress plugin Vavilon Preloader scored 84% from 54 tests.

About plugin

  • Plugin page: vavilon-preloader
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2018
  • Latest release: Jan 8, 2018
  • Number of updates: 18
  • Update frequency: every 0.3 days
  • Top authors: edisonbig (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 7,870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.73ms] Passed 4 tests

A check of server-side resources used by Vavilon Preloader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.50 ▼8.68
Dashboard /wp-admin3.31 ▲0.0144.80 ▼2.08
Posts /wp-admin/edit.php3.36 ▲0.0146.53 ▼18.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.98 ▼5.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.46 ▲4.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Vavilon Preloader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲15913.58 ▼0.846.07 ▲4.1737.91 ▼4.36
Dashboard /wp-admin2,203 ▲125.82 ▼0.08103.08 ▼4.2439.78 ▼5.63
Posts /wp-admin/edit.php2,092 ▼12.06 ▲0.0340.22 ▼3.1933.75 ▼4.71
Add New Post /wp-admin/post-new.php1,534 ▲123.27 ▼0.16654.23 ▼30.3669.39 ▲14.04
Media Library /wp-admin/upload.php1,391 ▲124.25 ▲0.0596.19 ▼2.0340.33 ▼5.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vavilon-preloader/vavprel.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/vavilon-preloader/inc/vavpre_uninstall.php:5

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: preloader

vavilon-preloader/vavprel.php 92% from 13 tests

This is the main PHP file of "Vavilon Preloader" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("vavilon-preloader.php" instead of "vavprel.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
There were no executable files found in this plugin918 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1173857
SVG10128
PHP2102625
JavaScript1008

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected