79% preload-everything

Code Review | Preload Everything

WordPress plugin Preload Everything scored 79% from 54 tests.

About plugin

  • Plugin page: preload-everything
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Aug 27, 2023
  • Number of updates: 4
  • Update frequency: every 100.8 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 769 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.20ms] Passed 4 tests

This is a short check of server-side resources used by Preload Everything
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.80 ▼2.20
Dashboard /wp-admin3.49 ▲0.1953.31 ▼0.42
Posts /wp-admin/edit.php3.55 ▲0.1955.40 ▲9.99
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.06 ▼20.38
Media Library /wp-admin/upload.php3.33 ▲0.1035.18 ▲2.20

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
pre_ev_basic_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Preload Everything
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22314.95 ▲0.371.80 ▲0.0739.73 ▼6.57
Dashboard /wp-admin2,361 ▲1736.60 ▲1.73139.45 ▲22.5341.88 ▼4.46
Posts /wp-admin/edit.php2,273 ▲1843.53 ▲1.4757.60 ▲17.5636.97 ▲4.74
Add New Post /wp-admin/post-new.php1,529 ▲1023.38 ▲0.44630.81 ▼26.2437.92 ▼21.12
Media Library /wp-admin/upload.php1,412 ▲274.34 ▲0.1485.37 ▼8.6541.95 ▲1.64
Preload Everything /wp-admin/preload-everything.php260.440.0814.91

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • pre_ev_basic_settings
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/preload-everything/includes/admin_settings.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/preload-everything.php
    • > Network (severe)
    wp-admin/preload-everything.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: preloading, preload, fast, speed, speed-optimization...

preload-everything/preload-everything.php Passed 13 tests

This is the main PHP file of "Preload Everything" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Fasten Your Website Loading Speed By Preloading Internal Pages Ahead Of The Time For Your Visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin672 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3202212554
JavaScript1234118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity35.00
▷ Minimum class complexity2.00
▷ Maximum class complexity68.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants2
▷ Global constants2100.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