Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.32ms] Passed 4 tests
This is a short check of server-side resources used by Browser Check
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.80 ▼0.27 |
Dashboard /wp-admin | 3.37 ▲0.07 | 56.14 ▲2.03 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.57 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 109.31 ▲6.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.00 ▼7.40 |
Browser check /wp-admin/options-general.php?page=browser-check-settings | 3.26 | 33.92 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
browser_check |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Browser Check
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.38 | 1.96 ▲0.12 | 43.84 ▼12.91 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▼0.02 | 95.02 ▼1.35 | 42.08 ▼1.24 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.06 | 35.43 ▼2.25 | 34.82 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.38 ▲0.28 | 687.32 ▼42.58 | 52.74 ▼14.27 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.08 | 101.84 ▼5.61 | 44.86 ▼1.99 |
Browser check /wp-admin/options-general.php?page=browser-check-settings | 972 | 1.66 | 23.63 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- browser_check
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: flash, check, block, browser, old...
browser-check/browser-check.php Passed 13 tests
This is the main PHP file of "Browser Check" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Check browser version, JavaScript, Cookie, Adobe Flash Player.
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
Good job! No executable or dangerous file extensions detected1,065 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 92 | 11 | 558 |
JavaScript | 6 | 31 | 12 | 268 |
PO File | 1 | 50 | 73 | 160 |
CSS | 4 | 0 | 0 | 79 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.52% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected