78% ajaxpress

Code Review | AjaxPress | Elevate Your WordPress Experience with Seamless Single-Page Navigation

WordPress plugin AjaxPress | Elevate Your WordPress Experience with Seamless Single-Page Navigation scored78%from 54 tests.

About plugin

  • Plugin page: ajaxpress
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jul 3, 2021
  • Latest release: Aug 14, 2023
  • Number of updates: 20
  • Update frequency: every 38.7 days
  • Top authors: iamjafran (60%)benniledl (45%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.27ms] Passed 4 tests

An overview of server-side resources used by AjaxPress | Elevate Your WordPress Experience with Seamless Single-Page Navigation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0545.42 ▲2.89
Dashboard /wp-admin3.35 ▲0.0547.70 ▼1.25
Posts /wp-admin/edit.php3.47 ▲0.1147.46 ▼5.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.19 ▼12.07
Media Library /wp-admin/upload.php3.28 ▲0.0537.50 ▲1.42
AjaxPress /wp-admin/options-general.php?page=ajaxpress3.2533.03

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for AjaxPress | Elevate Your WordPress Experience with Seamless Single-Page Navigation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.40 ▼0.998.67 ▲6.7942.23 ▼1.86
Dashboard /wp-admin2,199 ▲215.56 ▼0.0784.40 ▼22.4939.23 ▼4.44
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0334.45 ▼7.3336.16 ▼1.19
Add New Post /wp-admin/post-new.php1,531 ▲523.11 ▲0.10661.11 ▼48.8258.64 ▼10.95
Media Library /wp-admin/upload.php1,407 ▲134.21 ▲0.0696.89 ▼8.8644.72 ▲4.41
AjaxPress /wp-admin/options-general.php?page=ajaxpress1,1862.2738.2334.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ajaxpress/ajaxpress.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AjaxPress\\Base' not found in wp-content/plugins/ajaxpress/includes/classes/class-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AjaxPress\\Base' not found in wp-content/plugins/ajaxpress/includes/classes/class-assets.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'AjaxPress\\Base' not found in wp-content/plugins/ajaxpress/includes/classes/class-app.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AjaxPress\\plugin_dir_url() in wp-content/plugins/ajaxpress/includes/class-boot.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

ajaxpress/ajaxpress.php 85% from 13 tests

The primary PHP file in "AjaxPress | Elevate Your WordPress Experience with Seamless Single-Page Navigation" version 1.3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected396 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP985168316
XML1395476
JavaScript2224

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.20
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected