Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼5.17ms] Passed 4 tests
Analyzing server-side resources used by Pure Web Brilliant's JavaScript Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.91 ▼1.34 |
Dashboard /wp-admin | 3.36 ▲0.02 | 46.26 ▼14.20 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.92 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.85 ▼7.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.41 ▲4.43 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pure Web Brilliant's JavaScript Control
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.75 ▲0.37 | 1.83 ▼0.03 | 44.80 ▲2.58 |
Dashboard /wp-admin | 2,211 ▲19 | 5.80 ▲0.84 | 102.69 ▼7.72 | 38.87 ▼0.79 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 1.99 ▼0.04 | 38.26 ▲2.64 | 37.28 ▲5.01 |
Add New Post /wp-admin/post-new.php | 1,590 ▲67 | 22.04 ▲1.07 | 665.01 ▼51.90 | 35.76 ▼23.42 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.03 | 97.81 ▼11.98 | 41.04 ▼4.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kevinjohn-gallagher-pure-web-brilliants-javascript-control/kevinjohn_gallagher__javascript_control.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No tags were found
kevinjohn-gallagher-pure-web-brilliants-javascript-control/kevinjohn_gallagher__javascript_control.php 92% from 13 tests
The principal PHP file in "Pure Web Brilliant's JavaScript Control" v. 2.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kevinjohn-gallagher-pure-web-brilliants-javascript-control.php" instead of "kevinjohn_gallagher__javascript_control.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,558 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 0 | 481 | 757 |
PHP | 1 | 211 | 137 | 419 |
CSS | 1 | 33 | 150 | 382 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 43.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 56.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_javascripts/jquery-ui/jquery-ui-1.8.20/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.25KB | 0.15KB | ▼ 39.62% |
_javascripts/jquery-ui/jquery-ui-1.8.20/css/ui-lightness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
_javascripts/jquery-ui/jquery-ui-1.8.20/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |
_javascripts/jquery-ui/jquery-ui-1.8.20/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
_javascripts/jquery-ui/jquery-ui-1.8.20/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |