89% questionscout

Code Review | QuestionScout

WordPress plugin QuestionScout scored89%from 54 tests.

About plugin

  • Plugin page: questionscout
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Sep 2, 2020
  • Number of updates: 5
  • Update frequency: every 8.6 days
  • Top authors: questionscout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.41ms] Passed 4 tests

Analyzing server-side resources used by QuestionScout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.59 ▼0.94
Dashboard /wp-admin3.31 ▲0.0150.22 ▲2.75
Posts /wp-admin/edit.php3.36 ▲0.0142.52 ▼19.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.16 ▼21.97
Media Library /wp-admin/upload.php3.23 ▲0.0032.42 ▲0.37

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by QuestionScout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.23 ▼1.551.76 ▲0.0543.18 ▼3.10
Dashboard /wp-admin2,209 ▲245.87 ▲0.9995.38 ▼22.1339.99 ▼4.17
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0434.40 ▼2.1833.48 ▼5.83
Add New Post /wp-admin/post-new.php6,185 ▲4,67119.04 ▲1.26863.87 ▲205.8750.23 ▲0.66
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.05105.02 ▲4.7143.20 ▼0.43

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

questionscout/plugin.php 92% from 13 tests

This is the main PHP file of "QuestionScout" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("questionscout.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin7,511 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON2007,157
JavaScript31853160
PHP2145798
Sass317194
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected