78% wp-query-engine

Code Review | WP Query Engine

WordPress plugin WP Query Engine scored78%from 54 tests.

About plugin

  • Plugin page: wp-query-engine
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Dec 5, 2019
  • Number of updates: 7
  • Update frequency: every 69.4 days
  • Top authors: gaiusinvictus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /837 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼3.87ms] Passed 4 tests

An overview of server-side resources used by WP Query Engine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.68 ▲2.97
Dashboard /wp-admin3.32 ▲0.0251.13 ▲2.84
Posts /wp-admin/edit.php3.44 ▲0.0846.32 ▼7.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.99 ▼9.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.84 ▼1.44

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Query Engine
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.081.80 ▲0.1046.15 ▲2.52
Dashboard /wp-admin2,198 ▲185.61 ▼0.0586.50 ▼2.2038.46 ▼6.63
Posts /wp-admin/edit.php2,097 ▼01.95 ▼0.0434.42 ▼2.3132.18 ▼2.15
Add New Post /wp-admin/post-new.php1,537 ▲918.29 ▼4.62624.47 ▼62.0072.53 ▲21.16
Media Library /wp-admin/upload.php1,403 ▲64.35 ▲0.2498.29 ▼8.2841.37 ▼5.51

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-query-engine/wp-query-engine.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WPCL\\QueryEngine\\Plugin' not found in wp-content/plugins/wp-query-engine/includes/classes/frontend.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-query-engine/templates/loop.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WPCL\\QueryEngine\\Plugin' not found in wp-content/plugins/wp-query-engine/includes/classes/query.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WPCL\\QueryEngine\\Plugin' not found in wp-content/plugins/wp-query-engine/includes/classes/beaverbuilder.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-query-engine/templates/genesis.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/wp-query-engine/includes/classes/beaverbuilder/queryengine.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-query-engine/templates/basic-archive.php:50

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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-query-engine === )
Please take inspiration from this readme.txt

wp-query-engine/wp-query-engine.php 92% from 13 tests

The main file in "WP Query Engine" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,100 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP171955801,100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity17.70
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces4
Interfaces3
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods3158.49%
▷ Public methods4177.36%
▷ Protected methods23.77%
▷ Private methods1018.87%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin