78% ajaxify

Code Review | Ajaxify Wordpress

WordPress plugin Ajaxify Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: ajaxify
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 16, 2014
  • Latest release: Jan 24, 2014
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: vishal.pa (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /5,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.13ms] Passed 4 tests

Server-side resources used by Ajaxify Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.91 ▼2.89
Dashboard /wp-admin3.33 ▲0.0255.71 ▲10.40
Posts /wp-admin/edit.php3.38 ▲0.0248.69 ▼0.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.93 ▼18.88
Media Library /wp-admin/upload.php3.25 ▲0.0241.38 ▲6.14
Ajaxify /wp-admin/options-general.php?page=aj-id3.1931.41

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
axj_settings
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajaxify Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.72 ▼0.8310.35 ▲8.7442.12 ▼2.62
Dashboard /wp-admin2,196 ▲195.56 ▼0.0386.99 ▼4.9639.41 ▼4.74
Posts /wp-admin/edit.php2,107 ▲41.99 ▼0.0336.66 ▼3.6136.33 ▲2.05
Add New Post /wp-admin/post-new.php1,529 ▼623.68 ▲5.38695.18 ▲13.9254.02 ▼20.16
Media Library /wp-admin/upload.php1,407 ▲164.10 ▼0.09101.59 ▼0.4344.27 ▼3.91
Ajaxify /wp-admin/options-general.php?page=aj-id8412.2728.0934.14

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • axj_settings
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=aj-id
    • > Notice in wp-content/plugins/ajaxify/ajax-option.php+52
    Undefined variable: ajx_options

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 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/ajaxify/ajax-option.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

ajaxify/ajax-option.php 92% from 13 tests

The main PHP file in "Ajaxify Wordpress" ver. 1.0 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ajaxify.php" instead of "ajax-option.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
Success! There were no dangerous files found in this plugin106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14611106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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