10% interview

Code Review | Interview

WordPress plugin Interview scored10%from 54 tests.

About plugin

  • Plugin page: interview
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: May 16, 2022
  • Latest release: Jan 31, 2023
  • Number of updates: 6
  • Update frequency: every 46.5 days
  • Top authors: proxymis (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /431 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/interview/interview.php+180
    Undefined variable: wpdb

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.63ms] Passed 4 tests

Analyzing server-side resources used by Interview
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1844.93 ▲7.20
Dashboard /wp-admin3.48 ▲0.1346.38 ▼19.07
Posts /wp-admin/edit.php3.60 ▲0.2447.26 ▲4.61
Add New Post /wp-admin/post-new.php6.06 ▲0.1792.04 ▼0.29
Media Library /wp-admin/upload.php3.40 ▲0.1737.44 ▲4.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: 4 new tables, 7 new options
New tables
wp_proxymis_interview
wp_proxymis_user_interview
wp_proxymis_interview_users_answers
wp_proxymis_questions
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
category_children
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Interview
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.22 ▼1.391.69 ▼0.3740.40 ▼3.08
Dashboard /wp-admin2,218 ▲305.84 ▲0.92101.44 ▼10.6238.93 ▼5.18
Posts /wp-admin/edit.php2,137 ▲482.03 ▲0.0039.68 ▲4.5236.57 ▲1.79
Add New Post /wp-admin/post-new.php1,542 ▲923.13 ▲0.07636.25 ▼75.1257.38 ▼17.61
Media Library /wp-admin/upload.php1,400 ▲154.23 ▲0.0792.86 ▼19.8342.53 ▼4.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_proxymis_interview_users_answers
    • wp_proxymis_questions
    • wp_proxymis_interview
    • wp_proxymis_user_interview
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • category_children
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/interview/upload/save-video.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/interview/interview.php on line 180
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/interview/upload/save-video.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/interview/interview.php:181
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/interview/interview.php on line 180
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/interview/upload/save-video.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/interview/upload/save-video.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please describe screenshot #8 in interview/assets to your readme.txt
You can look at the official readme.txt

interview/interview.php 92% from 13 tests

"Interview" version 1.01's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 255 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,246 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4697717
CSS3463334
JSON200110
HTML29068
PHP37863117

PHP code Passed 2 tests

This is a very shot 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.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin