100% wp-query-console

Code Review | WP Query Console

WordPress plugin WP Query Console scored 100% from 53 tests.

About plugin

  • Plugin page: wp-query-console
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 5.8.1
  • First release: Mar 20, 2017
  • Latest release: Mar 16, 2018
  • Number of updates: 7
  • Update frequency: every 51.3 days
  • Top authors: AjitBohra (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 5,075 total downloads

Benchmarks

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

Server-side resources used by WP Query Console
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1532.08 ▲9.76
Dashboard /wp-admin3.09 ▲0.0441.59 ▲0.55
Posts /wp-admin/edit.php3.14 ▲0.0441.03 ▼2.73
Add New Post /wp-admin/post-new.php2.87 ▼2.5625.96 ▼1,146.41
Media Library /wp-admin/upload.php3.03 ▲0.0334.58 ▲0.23

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Query Console
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,782 ▼80018.48 ▲2.981.95 ▼6.3249.97 ▼4.37
Dashboard /wp-admin2,137 ▼7137.95 ▲2.10168.34 ▲37.40101.72 ▲7.92
Posts /wp-admin/edit.php2,090 ▼6164.73 ▲2.0462.89 ▼7.0294.99 ▲8.01
Add New Post /wp-admin/post-new.php1,683 ▲3221.25 ▲4.04372.56 ▼4.64122.55 ▲12.30
Media Library /wp-admin/upload.php1,434 ▼3416.25 ▲1.23116.91 ▼26.98115.58 ▼7.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: development, admin, test, query

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

"WP Query Console" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected30,470 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55,0807,48430,311
PHP139150144
Sass12013
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin