Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.15ms] Passed 4 tests
This is a short check of server-side resources used by VidCheck
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.99 ▲1.23 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.53 ▼8.59 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.63 ▼2.58 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 78.55 ▼14.52 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.28 ▼2.90 |
Claimant View /wp-admin/admin.php?page=Claimant_View | 3.27 | 29.27 |
Claimants /wp-admin/admin.php?page=Claimant_List | 3.38 | 34.91 |
Vidcheck Delete /wp-admin/admin.php?page=Vidcheck_Delete | 3.27 | 32.13 |
Rating Update /wp-admin/admin.php?page=Rating_Update | 3.32 | 33.40 |
Claimant Update /wp-admin/admin.php?page=Claimant_Update | 3.32 | 31.11 |
VidCheck /wp-admin/admin.php?page=vidchecks-list | 3.30 | 31.45 |
Claim Delete /wp-admin/admin.php?page=claim_delete | 3.30 | 30.28 |
Claimant Delete /wp-admin/admin.php?page=Claimant_Delete | 3.30 | 27.82 |
Rating Delete /wp-admin/admin.php?page=Rating_Delete | 3.30 | 31.68 |
edit_Claim /wp-admin/admin.php?page=edit_new_claim | 3.32 | 30.86 |
Server storage [IO: ▲0.53MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_vidcheck_claim |
wp_vidcheck_claimant |
wp_vidcheck_video |
wp_vidcheck_ratings |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
jal_db_version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VidCheck
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲126 | 13.22 ▼1.43 | 1.67 ▼0.32 | 44.49 ▼0.97 |
Dashboard /wp-admin | 2,264 ▲76 | 5.80 ▲0.93 | 98.98 ▼18.15 | 38.47 ▼17.98 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.02 ▼0.01 | 41.20 ▲1.55 | 36.00 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,567 ▲47 | 23.33 ▲0.03 | 616.25 ▼62.81 | 51.39 ▼21.43 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.19 ▼0.06 | 96.73 ▼6.67 | 44.06 ▼3.52 |
Claimant View /wp-admin/admin.php?page=Claimant_View | 876 | 2.02 | 23.98 | 28.42 |
Claimants /wp-admin/admin.php?page=Claimant_List | 1,192 | 3.04 | 42.32 | 27.73 |
Vidcheck Delete /wp-admin/admin.php?page=Vidcheck_Delete | 798 | 2.04 | 22.73 | 22.04 |
Rating Update /wp-admin/admin.php?page=Rating_Update | 1,162 | 3.03 | 40.65 | 67.12 |
Claimant Update /wp-admin/admin.php?page=Claimant_Update | 1,135 | 3.04 | 37.80 | 63.66 |
VidCheck /wp-admin/admin.php?page=vidchecks-list | 879 | 2.04 | 26.00 | 34.38 |
Claim Delete /wp-admin/admin.php?page=claim_delete | 798 | 2.05 | 21.66 | 23.58 |
Claimant Delete /wp-admin/admin.php?page=Claimant_Delete | 798 | 2.02 | 23.09 | 20.73 |
Rating Delete /wp-admin/admin.php?page=Rating_Delete | 819 | 2.02 | 21.64 | 21.61 |
edit_Claim /wp-admin/admin.php?page=edit_new_claim | 1,375 | 4.22 | 55.40 | 34.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_vidcheck_video
- wp_vidcheck_claimant
- wp_vidcheck_ratings
- wp_vidcheck_claim
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- jal_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+8
Undefined index: id
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+87
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+35
Trying to get property 'name' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+42
Trying to get property 'slug' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+46
Trying to get property 'tagline' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+51
Trying to get property 'description' of non-object
- > GET request to /wp-admin/admin.php?page=Vidcheck_Delete
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'vid_vidcheck_delete' not found or invalid function name
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+31
Trying to get property 'id' of non-object
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Notice in wp-content/plugins/vidcheck/ratings/rating_update.php+39
Trying to get property 'numericvalue' of non-object
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Notice in wp-content/plugins/vidcheck/ratings/rating_update.php+49
Trying to get property 'color' of non-object
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Notice in wp-content/plugins/vidcheck/ratings/rating_update.php+55
Trying to get property 'bg_color' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Notice in wp-content/plugins/vidcheck/ratings/rating_update.php+62
Trying to get property 'fe_image' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Claimant_Update
- > Notice in wp-content/plugins/vidcheck/claimant/claimant_update.php+60
Trying to get property 'imageName' of non-object
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+11
Undefined index: video_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+69
Trying to get property 'title' of non-object
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+75
Trying to get property 'url' of non-object
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+81
Trying to get property 'total_duration' of non-object
- > GET request to /wp-admin/admin.php?page=edit_new_claim
- > Notice in wp-content/plugins/vidcheck/vidchecks/edit_new_claim.php+87
Trying to get property 'summary' of non-object
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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vidcheck/vidcheck_delete.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vidcheck/vidchecks/claim_delete.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vidcheck/vidcheck.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vidcheck/ratings/rating_delete.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vidcheck/claimant/claimant_list.php:246
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vidcheck/claimant/claimant_delete.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/vidcheck/single-vidcheck.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/vidcheck/all-vidchecks.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vidcheck/ratings/rating_list.php:260
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=Rating_Update 182 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=Rating_Update
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=Rating_Update 188 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== vidcheck ===
)
vidcheck/vidcheck.php 92% from 13 tests
This is the main PHP file of "VidCheck" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 378 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected5,740 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 780 | 157 | 3,353 |
CSS | 2 | 274 | 1 | 1,526 |
JavaScript | 3 | 61 | 3 | 821 |
Markdown | 1 | 23 | 0 | 40 |
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.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/icons/clock.png | 1.81KB | 0.81KB | ▼ 55.30% |
claimant/no_claim.png | 1.10KB | 1.05KB | ▼ 4.10% |
inc/icons/no_image.png | 1.10KB | 1.05KB | ▼ 4.10% |
ratings/no_rating.png | 1.10KB | 1.05KB | ▼ 4.10% |