Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.67MB] [CPU: ▲22.81ms] Passed 4 tests
A check of server-side resources used by WPJAM Basic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.35 ▲3.89 | 68.14 ▲25.19 |
Dashboard /wp-admin | 8.29 ▲4.99 | 85.47 ▲38.80 |
Posts /wp-admin/edit.php | 8.37 ▲5.01 | 74.29 ▲24.69 |
Add New Post /wp-admin/post-new.php | 10.84 ▲4.95 | 105.51 ▲13.20 |
Media Library /wp-admin/upload.php | 8.09 ▲4.86 | 62.02 ▲28.14 |
优化设置 /wp-admin/admin.php?page=wpjam-basic | 8.18 | 66.19 |
扩展管理 /wp-admin/admin.php?page=wpjam-verify | 8.15 | 66.52 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wpjam-thumbnail |
wpjam-custom |
widget_recent-comments |
wpjam-cdn |
wpjam-extends |
wpjam-basic |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wpjam-links |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WPJAM Basic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲43 | 14.41 ▲0.16 | 1.45 ▼0.41 | 43.86 ▼1.29 |
Dashboard /wp-admin | 2,225 ▲48 | 6.46 ▲0.84 | 115.62 ▲19.15 | 54.58 ▲7.08 |
Posts /wp-admin/edit.php | 2,337 ▲237 | 3.97 ▲2.03 | 62.26 ▲22.06 | 88.44 ▲50.48 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.02 ▼0.03 | 686.18 ▼1.78 | 38.04 ▼13.10 |
Media Library /wp-admin/upload.php | 1,440 ▲46 | 4.67 ▲0.58 | 91.77 ▼28.23 | 48.77 ▼1.16 |
优化设置 /wp-admin/admin.php?page=wpjam-basic | 1,362 | 3.93 | 59.86 | 103.70 |
扩展管理 /wp-admin/admin.php?page=wpjam-verify | 1,033 | 3.45 | 50.82 | 51.35 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_theysaidso_widget
- wpjam-basic
- wpjam-thumbnail
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- wpjam-cdn
- wpjam-extends
- wpjam-custom
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 54× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'WPJAM_Instance_Trait' not found in wp-content/plugins/wpjam-basic/includes/class-wpjam-term.php on line 2
- > PHP Warning
Class 'WPJAM_Post' not found in wp-content/plugins/wpjam-basic/public/wpjam-compat.php on line 5
- > PHP Warning
Class 'WPJAM_Option_Items' not found in wp-content/plugins/wpjam-basic/public/wpjam-compat.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpjam-basic/cdn/qiniu.php:2
- > PHP Warning
include(): Failed opening 'ABSPATHwp-admin/includes/class-wp-list-table.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wpjam-basic/includes/class-wpjam-list-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wpjam-basic/extends/wpjam-roles.php:200
- > PHP Fatal error
Uncaught Error: Class 'WPJAM_Register' not found in wp-content/plugins/wpjam-basic/includes/class-wpjam-admin.php:62
- > PHP Fatal error
Uncaught Error: Class 'WPJAM_Model' not found in wp-content/plugins/wpjam-basic/extends/301-redirects.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPJAM_Args' not found in wp-content/plugins/wpjam-basic/components/wpjam-crons.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPJAM_Attr' not found in wp-content/plugins/wpjam-basic/includes/class-wpjam-field.php:2
- > 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 Passed 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
2 plugin tags: wpjam, memcached
wpjam-basic/wpjam-basic.php Passed 13 tests
The principal PHP file in "WPJAM Basic" v. 6.4.1 is loaded by WordPress automatically on each request
77 characters long description:
WPJAM 常用的函数和接口,屏蔽所有 WordPress 不常用的功能。
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
Everything looks great! No dangerous files found in this plugin25,338 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 6,234 | 462 | 23,169 |
JavaScript | 4 | 510 | 14 | 1,911 |
CSS | 1 | 60 | 0 | 258 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 31.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 7 | |
Classes | 145 | |
▷ Abstract classes | 1 | 0.69% |
▷ Concrete classes | 144 | 99.31% |
▷ Final classes | 0 | 0.00% |
Methods | 1,413 | |
▷ Static methods | 647 | 45.79% |
▷ Public methods | 1,224 | 86.62% |
▷ Protected methods | 175 | 12.38% |
▷ Private methods | 14 | 0.99% |
Functions | 569 | |
▷ Named functions | 534 | 93.85% |
▷ Anonymous functions | 35 | 6.15% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected