Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.93ms] Passed 4 tests
Server-side resources used by 果果推送
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.12 ▼1.53 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.26 ▼3.58 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.59 ▼0.79 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.05 ▼21.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 31.74 ▲1.29 |
推送记录 /wp-admin/admin.php?page=ggpush-record | 3.34 | 37.25 |
推送设置 /wp-admin/admin.php?page=ggpush-settings | 3.31 | 31.94 |
辅助推送 /wp-admin/admin.php?page=ggpush-assist-push | 3.28 | 30.99 |
定时推送 /wp-admin/admin.php?page=ggpush-timing-push | 3.36 | 31.27 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ggpush_records |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
ggpush_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for 果果推送
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲63 | 14.34 ▲0.02 | 1.69 ▲0.04 | 43.74 ▼1.09 |
Dashboard /wp-admin | 2,233 ▲59 | 5.64 ▼0.04 | 85.96 ▼4.70 | 47.99 ▲4.09 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.97 ▼0.03 | 36.75 ▼3.35 | 41.01 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.28 ▲0.18 | 614.48 ▼8.15 | 55.34 ▼0.41 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.16 ▼0.01 | 96.69 ▼3.45 | 47.99 ▲2.86 |
推送记录 /wp-admin/admin.php?page=ggpush-record | 1,180 | 2.01 | 26.38 | 67.42 |
推送设置 /wp-admin/admin.php?page=ggpush-settings | 933 | 2.03 | 25.01 | 55.62 |
辅助推送 /wp-admin/admin.php?page=ggpush-assist-push | 864 | 2.01 | 25.73 | 55.27 |
定时推送 /wp-admin/admin.php?page=ggpush-timing-push | 1,001 | 2.00 | 21.70 | 43.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
4 plugin tags: baidu, baiduseo, bing, indexnow
ggpush/ggpush.php 92% from 13 tests
This is the main PHP file of "果果推送" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,191 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 147 | 461 | 2,183 |
JavaScript | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 23.89 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 80 | 84.21% |
▷ Public methods | 95 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin