89% s9s-personality-quiz

Code Review | S9S Personality Quiz

WordPress plugin S9S Personality Quiz scored 89% from 54 tests.

About plugin

  • Plugin page: s9s-personality-quiz
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: signal9software (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 895 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by S9S Personality Quiz
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.51 ▼0.94
Dashboard /wp-admin3.31 ▲0.0146.97 ▼0.45
Posts /wp-admin/edit.php3.36 ▲0.0145.14 ▼4.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.14 ▼18.11
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼1.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for S9S Personality Quiz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12113.71 ▼0.589.90 ▲8.1443.18 ▲1.80
Dashboard /wp-admin2,200 ▲94.83 ▼1.03100.35 ▼5.7339.71 ▼5.78
Posts /wp-admin/edit.php2,071 ▼182.06 ▲0.0434.99 ▼5.7232.77 ▼5.23
Add New Post /wp-admin/post-new.php6,437 ▲4,89424.20 ▲5.96883.25 ▲209.0751.00 ▼17.43
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0693.70 ▼20.9342.02 ▼7.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
3 plugin tags: personality quiz, viral content, quiz

s9s-personality-quiz/index.php 85% from 13 tests

The principal PHP file in "S9S Personality Quiz" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("s9s-personality-quiz.php" instead of "index.php")
  • 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin29 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP151123
JavaScript20226

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected