Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.94ms] Passed 4 tests
A check of server-side resources used by Bottom suspended window, 底部悬浮窗
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.54 ▼2.62 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.45 ▼1.49 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.28 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.77 ▼2.99 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.08 ▲4.36 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Bottom suspended window, 底部悬浮窗: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.45 ▼1.17 | 8.01 ▲6.36 | 47.18 ▲4.42 |
Dashboard /wp-admin | 2,204 ▲27 | 5.63 ▼0.02 | 92.47 ▼0.60 | 41.27 ▲0.20 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.95 ▼0.04 | 41.62 ▲0.52 | 37.36 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.01 ▼0.01 | 614.58 ▼53.97 | 61.03 ▼6.65 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.22 ▲0.00 | 101.60 ▼2.11 | 43.36 ▼1.72 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bottom-fixed-window/cancms-float-bar.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: sticky bar, suspended window, fixed bar, ads, bottom bar
bottom-fixed-window/cancms-float-bar.php 85% from 13 tests
"Bottom suspended window, 底部悬浮窗" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bottom-fixed-window.php" instead of "cancms-float-bar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin623 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 215 | 200 | 573 |
CSS | 2 | 6 | 1 | 29 |
JSON | 2 | 1 | 0 | 15 |
JavaScript | 1 | 3 | 1 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 15 | 30.61% |
▷ Public methods | 45 | 91.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.16% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-2.png | 51.20KB | 24.17KB | ▼ 52.78% |
screenshots/screenshot-1.png | 96.03KB | 44.01KB | ▼ 54.17% |
screenshots/icon256.png | 2.55KB | 0.65KB | ▼ 74.39% |