94% wordquest

Code Review | WordQuest

WordPress plugin WordQuest scored 94% from 54 tests.

About plugin

  • Plugin page: wordquest
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 5.8.1
  • First release: May 6, 2014
  • Latest release: May 7, 2014
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: ianfhunter (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,210 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼135.42ms] Passed 4 tests

An overview of server-side resources used by WordQuest
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.68 ▲11.20
Dashboard /wp-admin3.09 ▲0.0347.44 ▲4.76
Posts /wp-admin/edit.php3.17 ▲0.0747.23 ▲3.45
Add New Post /wp-admin/post-new.php5.44 ▲0.0194.51 ▼557.08
Media Library /wp-admin/upload.php3.04 ▲0.0331.67 ▲7.18

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/wordquest/" and "wp-content/uploads/"
    • (new file) wp-content/wordquest/.empty
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WordQuest
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,691 ▲9515.82 ▲0.307.73 ▼1.5253.46 ▲6.53
Dashboard /wp-admin2,979 ▲485.88 ▼0.11134.59 ▼23.28119.65 ▼1.09
Posts /wp-admin/edit.php2,745 ▲62.69 ▼0.0164.03 ▲1.0394.70 ▼1.91
Add New Post /wp-admin/post-new.php1,716 ▲21618.67 ▲0.21355.82 ▼4.39141.65 ▲35.07
Media Library /wp-admin/upload.php1,813 ▲64.98 ▼0.05150.78 ▼10.63130.64 ▲9.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordquest/wordpress-rpg.php:289

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rpg, posts, game, role-playing game, incentive

wordquest/wordpress-rpg.php 92% from 13 tests

The principal PHP file in "WordQuest" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordquest.php" instead of "wordpress-rpg.php")

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
Good job! No executable or dangerous file extensions detected196 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14176177
Markdown19012
JavaScript1107

PHP code Passed 2 tests

Analyzing 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.24
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin