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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 44.93 ▲7.20 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.38 ▼19.07 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.26 ▲4.61 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.04 ▼0.29 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 13.22 ▼1.39 | 1.69 ▼0.37 | 40.40 ▼3.08 |
Dashboard /wp-admin | 2,218 ▲30 | 5.84 ▲0.92 | 101.44 ▼10.62 | 38.93 ▼5.18 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.03 ▲0.00 | 39.68 ▲4.52 | 36.57 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.13 ▲0.07 | 636.25 ▼75.12 | 57.38 ▼17.61 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.23 ▲0.07 | 92.86 ▼19.83 | 42.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
- > PHP Notice
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 69 | 7 | 717 |
CSS | 3 | 46 | 3 | 334 |
JSON | 2 | 0 | 0 | 110 |
HTML | 2 | 9 | 0 | 68 |
PHP | 3 | 78 | 631 | 17 |
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 code | 0.13 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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