Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'plus_plugin_activate' not found or invalid function name
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.12ms] Passed 4 tests
An overview of server-side resources used by WP-Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.74 ▲0.48 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.48 ▼6.26 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.76 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.24 ▲4.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 43.19 ▲9.55 |
WP Plus /wp-admin/options-general.php?page=wp_plus | 3.28 | 35.40 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.70 ▼0.86 | 1.98 ▲0.30 | 42.54 ▼2.74 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.86 | 94.85 ▼18.89 | 37.82 ▼8.61 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 1.98 ▼0.04 | 33.86 ▼4.07 | 30.30 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.33 ▲0.83 | 633.22 ▼72.22 | 51.78 ▼3.65 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.06 | 96.06 ▼2.22 | 43.88 ▼3.86 |
WP Plus /wp-admin/options-general.php?page=wp_plus | 912 | 2.15 | 22.99 | 119.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_plus
- > Notice in wp-content/plugins/wp-plus/option.php+3
Undefined index: update_pluginoptions
SRP 50% from 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
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-plus/js/index.php
- > /wp-content/plugins/wp-plus/css/index.php
- > /wp-content/plugins/wp-plus/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #1 (WP-Plus) image not found
wp-plus/wp-plus.php Passed 13 tests
Analyzing the main PHP file in "WP-Plus" version 2.1.4
27 characters long description:
优化和增强您的博客
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,259 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 41 | 63 | 736 |
JavaScript | 5 | 67 | 83 | 249 |
CSS | 2 | 36 | 11 | 197 |
Markdown | 1 | 26 | 0 | 77 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin