84% wp-preload-pjax

Code Review | Preload & Pjax Faster Page Load

WordPress plugin Preload & Pjax Faster Page Load scored84%from 54 tests.

About plugin

  • Plugin page: wp-preload-pjax
  • Plugin version: 0.4.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Dec 13, 2014
  • Number of updates: 69
  • Update frequency: every 2.8 days
  • Top authors: falsandtru (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /5,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.70ms] Passed 4 tests

Analyzing server-side resources used by Preload & Pjax Faster Page Load
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.74 ▲4.83
Dashboard /wp-admin3.31 ▲0.0040.24 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0040.67 ▼9.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.73 ▼12.80
Media Library /wp-admin/upload.php3.23 ▲0.0033.80 ▲0.61

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Preload & Pjax Faster Page Load
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,043 ▲29714.46 ▲0.0925.41 ▲23.8043.19 ▲1.60
Dashboard /wp-admin2,209 ▲214.87 ▼1.02106.48 ▲6.3337.66 ▼5.26
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0136.42 ▲1.1732.15 ▼2.68
Add New Post /wp-admin/post-new.php1,533 ▲1423.14 ▼0.05655.43 ▼7.6053.05 ▼10.08
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0795.84 ▼0.6343.44 ▼3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 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 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-preload-pjax/main.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI ("-")
You can take inspiration from this readme.txt

wp-preload-pjax/main.php 92% from 13 tests

The main file in "Preload & Pjax Faster Page Load" v. 0.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-preload-pjax.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,227 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript345835,220
PHP15217

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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
No PNG images were found in this plugin