84% askbox

Code Review | Askbox

WordPress plugin Askbox scored 84% from 54 tests.

About plugin

  • Plugin page: askbox
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 8, 2019
  • Latest release: Nov 9, 2019
  • Number of updates: 2
  • Update frequency: every 13.5 days
  • Top authors: alisdee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 479 total downloads


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: ▼2.36ms] Passed 4 tests

An overview of server-side resources used by Askbox
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.35 ▼9.38
Dashboard /wp-admin3.32 ▲0.0246.29 ▼1.36
Posts /wp-admin/edit.php3.38 ▲0.0247.76 ▲2.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.10 ▲4.35
Media Library /wp-admin/upload.php3.25 ▲0.0234.64 ▼1.49

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Askbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.062.64 ▲0.8741.53 ▼7.36
Dashboard /wp-admin2,206 ▲185.88 ▲0.97108.00 ▼0.2242.18 ▼3.84
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0440.67 ▲6.2837.34 ▲1.92
Add New Post /wp-admin/post-new.php1,539 ▼018.34 ▼4.70603.27 ▼75.8553.23 ▼4.31
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0694.51 ▼0.5941.85 ▼5.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/askbox/askbox.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)
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: askbox

askbox/askbox.php Passed 13 tests

"Askbox" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Like a Tumblr askbox, but for WordPress. Shortcode is `[askbox]`. That's it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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