68% zajax-ajax-navigation

Code Review | Zajax - Ajax Navigation

WordPress plugin Zajax - Ajax Navigation scored68%from 54 tests.

About plugin

  • Plugin page: zajax-ajax-naviga...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: May 1, 2016
  • Number of updates: 48
  • Update frequency: every 2.9 days
  • Top authors: onigetoc (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /5,636 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.92MB] [CPU: ▼43.65ms] Passed 4 tests

This is a short check of server-side resources used by Zajax - Ajax Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0428.18 ▼15.02
Dashboard /wp-admin3.03 ▼0.3121.31 ▼42.93
Posts /wp-admin/edit.php3.03 ▼0.3320.82 ▼32.72
Add New Post /wp-admin/post-new.php3.03 ▼2.8622.06 ▼83.93
Media Library /wp-admin/upload.php3.03 ▼0.2025.58 ▼12.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zajax - Ajax Navigation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.85 ▼0.5010.15 ▲8.6041.78 ▲0.26
Dashboard /wp-admin2,206 ▲315.65 ▲0.0083.47 ▼15.8138.61 ▼3.87
Posts /wp-admin/edit.php2,108 ▲81.98 ▼0.0336.05 ▼6.5033.46 ▼5.32
Add New Post /wp-admin/post-new.php1,533 ▲523.56 ▲0.68664.82 ▲2.5055.09 ▼9.65
Media Library /wp-admin/upload.php1,408 ▲84.29 ▲0.0997.86 ▼6.4445.29 ▼4.70
Zajax /wp-admin/zajax.php260.420.1315.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zajax-ajax-navigation/zajax.php:66

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Video website using Zajax.), #2 (Zajax settings page.)
The official readme.txt might help

zajax-ajax-navigation/zajax.php 92% from 13 tests

The principal PHP file in "Zajax - Ajax Navigation" v. 0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zajax-ajax-navigation.php" instead of "zajax.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin615 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP18738330
CSS32131128
HTML124097
JavaScript41760

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin