10% vmv-preloader

Code Review | VMV Preloader

WordPress plugin VMV Preloader scored10%from 54 tests.

About plugin

  • Plugin page: vmv-preloader
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Jan 27, 2023
  • Number of updates: 35
  • Update frequency: every 6.9 days
  • Top authors: aseran (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/vmv-preloader/vmv/vmv-activate.php+32
    Undefined index: previewIdPage

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.09ms] Passed 4 tests

A check of server-side resources used by VMV Preloader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.98 ▲2.62
Dashboard /wp-admin3.34 ▲0.0345.81 ▼2.21
Posts /wp-admin/edit.php3.39 ▲0.0344.43 ▼4.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.16 ▼19.22
Media Library /wp-admin/upload.php3.26 ▲0.0334.08 ▲1.23

Server storage [IO: ▲0.66MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

VMV Preloader: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.34 ▼1.091.87 ▲0.0144.35 ▼0.97
Dashboard /wp-admin2,221 ▲305.86 ▲0.94101.96 ▲1.9238.34 ▼5.38
Posts /wp-admin/edit.php2,101 ▲122.06 ▲0.0536.06 ▼5.4933.63 ▼0.77
Add New Post /wp-admin/post-new.php1,555 ▲1318.48 ▲0.44638.56 ▼8.1557.02 ▼4.28
Media Library /wp-admin/upload.php1,403 ▲184.28 ▲0.0598.64 ▼9.5544.05 ▼4.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • vmv_preloader_settings
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/vmv-preloader/CrawlerDetect/src/Fixtures/Exclusions.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/vmv-preloader/CrawlerDetect/src/Fixtures/Headers.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/vmv-preloader/CrawlerDetect/src/Fixtures/Crawlers.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: preloader, site preloader, preload, svg, light...

vmv-preloader/vmv-preloader.php Passed 13 tests

The principal PHP file in "VMV Preloader" v. 1.3.1 is loaded by WordPress automatically on each request
54 characters long description:
Add to your site modern preloader with cool animation.

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
Good job! No executable or dangerous file extensions detected3,070 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP171361922,132
JSON1300882
JavaScript59054
CSS1001
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants529.41%
▷ Class constants1270.59%
▷ Public constants12100.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