Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.17ms] Passed 4 tests
This is a short check of server-side resources used by 百度站内搜索和360站内搜索
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.35 ▼2.57 |
Dashboard /wp-admin | 3.35 ▲0.00 | 51.70 ▼14.82 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.35 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.40 ▲2.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.32 ▲1.32 |
settings /wp-admin/options-general.php?page=apoyl-so-settings | 3.24 | 31.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
apoyl-so-settings |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
百度站内搜索和360站内搜索: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.22 ▼0.49 | 1.87 ▲0.21 | 42.80 ▼0.88 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▼0.07 | 86.01 ▼7.51 | 40.39 ▼7.15 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.15 ▲0.14 | 37.55 ▼0.87 | 37.39 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 23.44 ▲0.36 | 577.12 ▼33.02 | 55.72 ▲7.66 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.22 ▲0.05 | 97.44 ▼1.94 | 41.83 ▲0.37 |
settings /wp-admin/options-general.php?page=apoyl-so-settings | 835 | 2.00 | 24.52 | 26.67 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/apoyl-so/public/partials/public-display.php:14
- > PHP Notice
Undefined variable: arr in wp-content/plugins/apoyl-so/public/partials/public-display.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-so/admin/partials/admin-display.php:20
- > PHP Warning
Use of undefined constant APOYL_SO_URL - assumed 'APOYL_SO_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/apoyl-so/public/partials/public-display.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/apoyl-so/public/partials/public-display.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: 360, so
apoyl-so/apoyl-so.php 92% from 13 tests
The primary PHP file in "百度站内搜索和360站内搜索" version 1.4.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 264 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin285 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 92 | 142 | 274 |
CSS | 1 | 1 | 0 | 8 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/so.png | 2.53KB | 1.67KB | ▼ 33.80% |