93% wp-query-creator

Code Review | WP Query Creator

WordPress plugin WP Query Creator scored 93% from 54 tests.

About plugin

  • Plugin page: wp-query-creator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 5.8.1
  • First release: Aug 29, 2017
  • Latest release: Jun 2, 2021
  • Number of updates: 10
  • Update frequency: every 137.3 days
  • Top authors: aeonianin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 839 total downloads

Benchmarks

Plugin footprint Passed 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.13MB] [CPU: ▼150.08ms] Passed 4 tests

This is a short check of server-side resources used by WP Query Creator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2540.29 ▲17.84
Dashboard /wp-admin3.19 ▲0.1441.25 ▼16.29
Posts /wp-admin/edit.php3.24 ▲0.1454.17 ▲9.11
Add New Post /wp-admin/post-new.php5.56 ▲0.1298.81 ▼588.06
Media Library /wp-admin/upload.php3.13 ▲0.1338.50 ▼5.06

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Query Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,727 ▲9016.22 ▲0.3111.20 ▲0.5049.63 ▼6.85
Dashboard /wp-admin2,994 ▲575.96 ▲0.01147.96 ▼14.90113.71 ▼7.13
Posts /wp-admin/edit.php2,760 ▲212.69 ▼0.0172.29 ▲3.5794.61 ▼4.35
Add New Post /wp-admin/post-new.php1,607 ▼7618.77 ▲0.05379.89 ▼34.16116.95 ▼22.79
Media Library /wp-admin/upload.php1,831 ▲95.01 ▼0.03174.45 ▲8.75119.10 ▼17.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'wpqc_Cls' not found in wp-content/plugins/wp-query-creator/includes/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'wpqc_Cls' not found in wp-content/plugins/wp-query-creator/includes/shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'wpqc_Cls' not found in wp-content/plugins/wp-query-creator/includes/css_js.php:2

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #2 (Listing all WP Query), #3 (Admin preview), #4 (Set HTML Template)
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

wp-query-creator/wpqc.php 92% from 13 tests

The primary PHP file in "WP Query Creator" version 1.0 is used by WordPress to initiate all plugin functionality
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 ("wp-query-creator.php" instead of "wpqc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin807 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45546807

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity34.50
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity12.17
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 are no PNG files in this plugin