Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.89ms] Passed 4 tests
An overview of server-side resources used by 生成死链接死链提交
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 43.11 ▲0.92 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.01 ▼3.92 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.12 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 90.15 ▼19.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.19 ▲4.47 |
settings /wp-admin/options-general.php?page=apoyl-badurl-settings | 3.24 | 31.49 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
apoyl-badurl-settings |
Browser metrics Passed 4 tests
Checking browser requirements for 生成死链接死链提交
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.70 ▲0.42 | 1.76 ▲0.10 | 47.11 ▲4.47 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.02 | 91.97 ▲2.71 | 42.62 ▲0.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.07 | 40.46 ▼1.16 | 36.91 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.39 ▼1.66 | 628.22 ▲29.44 | 49.56 ▼17.58 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▲0.07 | 95.63 ▼0.79 | 43.33 ▲0.63 |
settings /wp-admin/options-general.php?page=apoyl-badurl-settings | 861 | 1.96 | 22.46 | 35.00 |
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 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=apoyl-badurl-settings
- > Notice in wp-content/plugins/apoyl-badurl/admin/partials/admin-display.php+28
Undefined variable: updateflag
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-badurl/admin/partials/admin-display.php:21
- > PHP Fatal error
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: seo
apoyl-badurl/apoyl-badurl.php 92% from 13 tests
The main PHP script in "生成死链接死链提交" version 1.4.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected240 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 90 | 126 | 237 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin