84% quick-query

Code Review | Quick Query

WordPress plugin Quick Query scored84%from 54 tests.

About plugin

  • Plugin page: quick-query
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2014
  • Latest release: Jul 8, 2014
  • Number of updates: 39
  • Update frequency: every 0.2 days
  • Top authors: pkarl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.27ms] Passed 4 tests

Analyzing server-side resources used by Quick Query
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.47 ▼3.07
Dashboard /wp-admin3.33 ▲0.0342.68 ▼5.27
Posts /wp-admin/edit.php3.44 ▲0.0943.34 ▼2.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.35 ▲1.33
Media Library /wp-admin/upload.php3.25 ▲0.0234.77 ▲3.10

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Quick Query: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.474.74 ▲2.9542.13 ▼4.06
Dashboard /wp-admin2,206 ▲184.83 ▼0.05112.38 ▼2.5040.31 ▼4.47
Posts /wp-admin/edit.php2,086 ▼01.99 ▼0.0140.00 ▲1.1234.30 ▼0.40
Add New Post /wp-admin/post-new.php1,537 ▲918.39 ▼5.09599.47 ▼92.4061.28 ▲10.14
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0995.67 ▼15.0643.30 ▼4.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/quick-query/tests/test_qq_get_by_id.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/quick-query/tests/test_wordpress_plugin_tests.php:8
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-query/tests/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/quick-query/tests/test_qq_acf.php:8
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/quick-query/tests/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/quick-query/tests/test_qq_get_by_type.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === quick-query === )
Please take inspiration from this readme.txt

quick-query/QuickQuery.php 92% from 13 tests

The primary PHP file in "Quick Query" version 0.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("quick-query.php" instead of "QuickQuery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected507 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7177379301
Markdown121075
Bourne Shell115459
JSON10045
XML10014
YAML13013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods30
▷ Static methods516.67%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions2
▷ Named functions2100.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 images were found in this plugin