Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.84MB] [CPU: ▼30.84ms] Passed 4 tests
An overview of server-side resources used by OSToolbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 33.14 ▼13.71 |
Dashboard /wp-admin | 3.10 ▼0.20 | 22.67 ▼25.31 |
Posts /wp-admin/edit.php | 3.10 ▼0.26 | 29.25 ▼17.17 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 26.43 ▼67.17 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 24.99 ▼8.22 |
OSToolbar /wp-admin/options-general.php?page=ostoolbar_options | 3.10 | 24.05 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by OSToolbar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲83 | 13.61 ▼0.79 | 1.78 ▼0.35 | 40.21 ▼1.95 |
Dashboard /wp-admin | 2,226 ▲35 | 5.25 ▲0.35 | 109.78 ▼7.37 | 42.50 ▼1.00 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.33 ▲0.29 | 46.31 ▲8.56 | 37.62 ▲3.94 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 18.51 ▼4.68 | 619.49 ▼67.96 | 52.71 ▼0.28 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.51 ▲0.31 | 98.75 ▼0.18 | 41.11 ▼3.51 |
OSToolbar /wp-admin/options-general.php?page=ostoolbar_options | 932 | 2.16 | 30.42 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ostoolbar_options
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- > GET request to /wp-admin/options-general.php?page=ostoolbar_options
- > Warning in wp-content/plugins/ostoolbar/library/ostoolbar/Configuration.php+160
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ostoolbar_options
- > Warning in wp-content/plugins/ostoolbar/library/ostoolbar/Configuration.php+203
Invalid argument supplied for foreach()
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Ostoolbar\\Model' not found in wp-content/plugins/ostoolbar/library/ostoolbar/Model/Tutorial.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=ostoolbar_options
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).fire is not a function" "TypeError: $(...).fire is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ostoolbar/assets/js/configuration.js?ver=6.3.1:34:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=ostoolbar_options
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).fire is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== ostoolbar ===
) - Screenshots: Please add images for these screenshots: #1 (The list of videos in your WordPress admin panel.), #2 (Watching a video.)
ostoolbar/ostoolbar.php Passed 13 tests
The main PHP script in "OSToolbar" version 3.0.3 is automatically included on every request by WordPress
68 characters long description:
This plugin shows training videos inside your WordPress admin panel.
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
Everything looks great! No dangerous files found in this plugin1,903 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 272 | 521 | 1,297 |
CSS | 2 | 28 | 30 | 571 |
JavaScript | 2 | 6 | 4 | 35 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 20 | 23.81% |
▷ Public methods | 64 | 76.19% |
▷ Protected methods | 20 | 23.81% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
assets/images/ost_icon.png | 3.01KB | 2.62KB | ▼ 13.09% |
assets/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |
assets/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |
assets/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |