Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.28ms] Passed 4 tests
Server-side resources used by Video Callout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 43.20 ▼1.92 |
Dashboard /wp-admin | 3.68 ▲0.38 | 47.30 ▲0.31 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 48.16 ▼3.93 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 100.97 ▲1.61 |
Media Library /wp-admin/upload.php | 3.59 ▲0.37 | 36.70 ▲0.43 |
Video Callout /wp-admin/options-general.php?page=video-callout | 3.70 | 43.77 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Video Callout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.30 ▼1.44 | 1.86 ▼0.39 | 40.73 ▼7.23 |
Dashboard /wp-admin | 2,287 ▲99 | 5.89 ▲1.00 | 113.39 ▼3.22 | 82.72 ▲40.73 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.01 ▼0.01 | 40.52 ▼0.05 | 34.87 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.17 ▲0.17 | 600.40 ▼40.16 | 49.77 ▼3.51 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.33 ▲0.10 | 96.46 ▼6.00 | 41.42 ▼0.82 |
Video Callout /wp-admin/options-general.php?page=video-callout | 2,121 | 3.08 | 93.96 | 35.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'WebEngineLimited\\VideoCalloutMeta' not found in wp-content/plugins/video-callout/classes/video-callout-admin.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/video-callout/classes/view/dashboard.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/video-callout/classes/view/meta-box.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function WebEngineLimited\\add_action() in wp-content/plugins/video-callout/classes/video-callout.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
video-callout/video-callout.php 85% from 13 tests
The entry point to "Video Callout" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.2")
- Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected39,116 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 1 | 0 | 33,715 |
PHP | 8 | 152 | 441 | 1,533 |
JavaScript | 6 | 121 | 352 | 1,507 |
JSX | 6 | 75 | 162 | 777 |
TypeScript | 6 | 30 | 140 | 742 |
PO File | 2 | 234 | 998 | 494 |
CSS | 2 | 34 | 15 | 301 |
SVG | 7 | 0 | 0 | 47 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 41.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 7 | 13.46% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.77% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 14.61KB | 4.61KB | ▼ 68.45% |
assets/screenshot-3.png | 13.45KB | 4.10KB | ▼ 69.50% |
assets/image/we-logo-grey-square@2x.png | 1.20KB | 0.40KB | ▼ 66.64% |
assets/image/we-logo-sym-grey.png | 1.98KB | 1.45KB | ▼ 26.86% |
assets/screenshot-2.png | 30.54KB | 10.05KB | ▼ 67.09% |