88% maxi-woo-ajax-navigation

Code Review | Maxi Woo Ajax Navigation

WordPress plugin Maxi Woo Ajax Navigation scored 88% from 54 tests.

About plugin

  • Plugin page: maxi-woo-ajax-nav...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 5.8.1
  • First release: Jul 29, 2015
  • Latest release: Jun 26, 2017
  • Number of updates: 10
  • Update frequency: every 70.2 days
  • Top authors: kaminsky.m (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,155 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼137.52ms] Passed 4 tests

Analyzing server-side resources used by Maxi Woo Ajax Navigation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.1436.50 ▼0.68
Dashboard /wp-admin3.30 ▲0.2452.71 ▲9.36
Posts /wp-admin/edit.php3.34 ▲0.2351.66 ▲7.93
Add New Post /wp-admin/post-new.php5.57 ▲0.1387.76 ▼555.56
Media Library /wp-admin/upload.php3.15 ▲0.1531.99 ▼1.76
Woo Ajax Nav /wp-admin/options-general.php?page=waj3.1536.00

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Maxi Woo Ajax Navigation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,900 ▲30417.86 ▲2.269.96 ▲0.9853.43 ▲7.27
Dashboard /wp-admin3,191 ▲2577.36 ▲1.21164.15 ▲23.63122.20 ▲10.72
Posts /wp-admin/edit.php2,989 ▲2504.08 ▲1.3783.51 ▲11.7883.54 ▼9.74
Add New Post /wp-admin/post-new.php1,535 ▼13720.92 ▲2.11361.97 ▼5.00131.04 ▲23.68
Media Library /wp-admin/upload.php1,835 ▲255.19 ▲0.19114.87 ▼25.92120.57 ▲12.42
Woo Ajax Nav /wp-admin/options-general.php?page=waj2,3804.5597.46125.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/maxi-woo-ajax-navigation/public/partials/waj-public-display.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: save in wp-content/plugins/maxi-woo-ajax-navigation/admin/partials/page_settings.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'WAJ' not found in wp-content/plugins/maxi-woo-ajax-navigation/admin/partials/_sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/maxi-woo-ajax-navigation/admin/partials/page_settings.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: ajax navigation, ajax pagination, woocommerce, products, filter

maxi-woo-ajax-navigation/maxi-woo-ajax-navigation.php 92% from 13 tests

The entry point to "Maxi Woo Ajax Navigation" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin1,195 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16268752724
CSS35739333
JavaScript35066138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.45
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods46
▷ Static methods715.22%
▷ Public methods4086.96%
▷ Protected methods00.00%
▷ Private methods613.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/wp_foto_vote0.png67.98KB33.22KB▼ 51.13%