84% page-load-ajax

Code Review | Page Load Ajax

WordPress plugin Page Load Ajax scored84%from 54 tests.

About plugin

  • Plugin page: page-load-ajax
  • Plugin version: 1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: May 6, 2021
  • Latest release: Mar 15, 2023
  • Number of updates: 26
  • Update frequency: every 26.1 days
  • Top authors: opajaap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,945 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.04ms] Passed 4 tests

This is a short check of server-side resources used by Page Load Ajax
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.36 ▲0.52
Dashboard /wp-admin3.38 ▲0.0852.80 ▼2.32
Posts /wp-admin/edit.php3.43 ▲0.0852.25 ▲2.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0896.15 ▼12.61
Media Library /wp-admin/upload.php3.31 ▲0.0838.98 ▲3.93
Page load Ajax /wp-admin/options-general.php?page=pla_settings3.2734.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Load Ajax
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.80 ▼0.569.53 ▲7.8545.01 ▲1.35
Dashboard /wp-admin2,215 ▲355.51 ▼0.0682.18 ▼12.9238.70 ▼2.75
Posts /wp-admin/edit.php2,123 ▲232.03 ▲0.0441.29 ▲1.4936.93 ▼2.05
Add New Post /wp-admin/post-new.php1,542 ▲1623.11 ▼0.06610.77 ▼47.5353.15 ▼0.64
Media Library /wp-admin/upload.php1,420 ▲264.22 ▲0.0295.20 ▼1.6141.81 ▼1.71
Page load Ajax /wp-admin/options-general.php?page=pla_settings9572.1623.5632.38

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-load-ajax/page-load-ajax.php:16

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: performance, ajax, page

page-load-ajax/page-load-ajax.php 92% from 13 tests

The main PHP file in "Page Load Ajax" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected458 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19478458

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity21.00
▷ Minimum method complexity21.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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 files were detected