Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.54ms] Passed 4 tests
This is a short check of server-side resources used by 123on video plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.58 ▲3.78 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.32 ▼2.77 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.51 ▼1.08 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 91.18 ▲2.24 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.93 ▲5.33 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
P123ON_installed |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
P123ON_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by 123on video plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.69 ▲0.33 | 1.61 ▲0.04 | 41.38 ▲0.36 |
Dashboard /wp-admin | 2,225 ▲57 | 5.57 ▼0.10 | 82.57 ▼3.88 | 65.58 ▲22.98 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.98 ▲0.01 | 39.34 ▲3.21 | 38.81 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,698 | 24.74 ▲6.61 | 993.65 ▲366.02 | 49.22 ▼12.46 |
Media Library /wp-admin/upload.php | 1,430 ▲36 | 4.14 ▼0.03 | 100.40 ▲2.73 | 74.53 ▲30.67 |
Videos /wp-admin/admin.php?page=vue-app#/ | 1,032 | 5.85 | 72.89 | 31.75 |
Add new /wp-admin/admin.php?page=vue-app#/add-new | 1,637 | 6.50 | 80.39 | 52.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- P123ON_version
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- P123ON_installed
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/123on/includes/Api/Example.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/123on/includes/Api.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vue-app#/
- > Network (severe)
wp-json/v2/video_123on/1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=vue-app#/add-new
- > Console-api (severe) in unknown
webpack:///./node_modules/vue/dist/vue.esm.js? 628:14 "[Vue warn]: Invalid component name: \"Add New\". Component names should conform to valid custom element name in html5 specification."
- > GET request to /wp-admin/admin.php?page=vue-app#/add-new
- > Console-api (severe) in unknown
webpack:///./node_modules/vue/dist/vue.esm.js? 628:14 "[Vue warn]: Invalid component name: \"Hotspot Table\". Component names should conform to valid custom element name in html5 specification."
- > GET request to /wp-admin/admin.php?page=vue-app#/add-new
- > Console-api (severe) in unknown
webpack:///./node_modules/vue/dist/vue.esm.js? 628:14 "[Vue warn]: Invalid component name: \"Draggable Hotspot\". Component names should conform to valid custom element name in html5 specification."
- > GET request to /wp-admin/admin.php?page=vue-app#/add-new
- > Network (severe)
wp-json/v2/video_123on/pages - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=vue-app#/add-new
- > Network (severe)
wp-json/v2/video_123on/products - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is your video list. Here you can navigate through your different videos and projects.), #2 (The navigation is really simple, you have your videos and your shortcut to create a new video.), #3 (This is the editor that you will you use to make your video interactive. Upload, and put in your hotspots.)
123on/plugin.php 85% from 13 tests
The principal PHP file in "123on video plugin" v. 1.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("123on.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected3,449 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Vuejs Component | 12 | 167 | 6 | 1,354 |
JavaScript | 12 | 461 | 636 | 1,042 |
PHP | 6 | 134 | 249 | 568 |
CSS | 2 | 52 | 0 | 423 |
SVG | 4 | 0 | 0 | 62 |
PHP code Passed 2 tests
An overview 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.21 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 45 | |
▷ Static methods | 1 | 2.22% |
▷ Public methods | 42 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/copy.png | 0.42KB | 0.48KB | 0.00% |
assets/img/plugin-icon.png | 0.40KB | 0.34KB | ▼ 14.77% |
assets/img/transparent-hotspot.png | 0.28KB | 0.12KB | ▼ 55.12% |
assets/img/popup-arrow-left.png | 0.47KB | 0.31KB | ▼ 33.95% |
assets/img/hotspot-yellow.png | 1.14KB | 1.14KB | 0.00% |