83% inquirer

Code Review | Inquirer

WordPress plugin Inquirer scored83%from 54 tests.

About plugin

  • Plugin page: inquirer
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2022
  • Latest release: Jan 23, 2022
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: seedsca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /621 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.64ms] 75% from 4 tests

Server-side resources used by Inquirer
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 5,571.96ms on /wp-admin/options-general.php?page=inquirer)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.10 ▼6.78
Dashboard /wp-admin3.33 ▲0.0344.30 ▼7.38
Posts /wp-admin/edit.php3.44 ▲0.0947.82 ▲1.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.98 ▼6.23
Media Library /wp-admin/upload.php3.25 ▲0.0342.99 ▲8.30
Inquirer /wp-admin/options-general.php?page=inquirer4.145,571.96

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
inquirer_settings
can_compress_scripts

Browser metrics Passed 4 tests

Inquirer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.24 ▼1.442.04 ▲0.3844.21 ▲0.77
Dashboard /wp-admin2,209 ▲215.84 ▲0.9397.60 ▼16.8744.56 ▲1.59
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0337.57 ▲0.7333.69 ▼0.19
Add New Post /wp-admin/post-new.php1,533 ▲523.17 ▲4.92656.60 ▲12.4150.23 ▼3.00
Media Library /wp-admin/upload.php1,397 ▲94.20 ▼0.0296.98 ▼3.0941.83 ▼3.93
Inquirer /wp-admin/options-general.php?page=inquirer1,0332.0322.3735.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • inquirer_settings
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/inquirer/class-admin.php
    • > /wp-content/plugins/inquirer/class-settings.php
    • > /wp-content/plugins/inquirer/inquirer.php

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)
No browser issues were found

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
These attributes need to be fixed:
  • Screenshots: Add a description for screenshot #0 in inquirer/assets to your readme.txt
You can take inspiration from this readme.txt

inquirer/inquirer.php 92% from 13 tests

The main file in "Inquirer" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Everything looks great! No dangerous files found in this plugin483 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP448187390
CSS113077
JSON11016

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.47
Average class complexity18.33
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1263.16%
▷ Public methods1684.21%
▷ Protected methods15.26%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/pagespeed_insights.png0.84KB0.86KB0.00%