10% antay-query-loader

Code Review | Antay Query Loader

WordPress plugin Antay Query Loader scored10%from 54 tests.

About plugin

  • Plugin page: antay-query-loader
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.2.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2014
  • Latest release: May 6, 2015
  • Number of updates: 8
  • Update frequency: every 30.3 days
  • Top authors: calvincanas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/antay-query-loader/antay-query-loader.php+36
    include(includes/admin/class-aql-admin.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.86MB] [CPU: ▼52.88ms] Passed 4 tests

Analyzing server-side resources used by Antay Query Loader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.01 ▼7.59
Dashboard /wp-admin2.08 ▼1.226.36 ▼51.25
Posts /wp-admin/edit.php2.08 ▼1.286.37 ▼43.62
Add New Post /wp-admin/post-new.php2.08 ▼3.816.15 ▼84.09
Media Library /wp-admin/upload.php2.08 ▼1.156.16 ▼32.54

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Antay Query Loader
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9313.38 ▼1.177.25 ▲5.4043.90 ▲1.71
Dashboard /wp-admin2,240 ▲375.09 ▼0.81109.03 ▲0.3740.55 ▼2.06
Posts /wp-admin/edit.php2,121 ▲182.44 ▲0.3140.47 ▲3.3935.78 ▼0.98
Add New Post /wp-admin/post-new.php1,540 ▲1423.38 ▲5.80695.63 ▲30.3238.04 ▼29.74
Media Library /wp-admin/upload.php1,416 ▲134.39 ▲0.20108.82 ▼9.0647.77 ▼0.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/antay-query-loader/antay-query-loader.php+36
    include(includes/admin/class-aql-admin.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed: You can take inspiration from this readme.txt

antay-query-loader/antay-query-loader.php 92% from 13 tests

The main PHP file in "Antay Query Loader" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin60 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1263047
JavaScript211413

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.45
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin