Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.81ms] Passed 4 tests
A check of server-side resources used by WP-JPOST
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.56 ▼4.08 |
Dashboard /wp-admin | 3.39 ▲0.04 | 54.17 ▼9.31 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 58.80 ▲9.58 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 101.21 ▲2.59 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 46.31 ▲7.58 |
采集列表 /wp-admin/edit.php?post_type=wp-jpost | 3.35 | 45.09 |
添加 /wp-admin/post-new.php?post_type=wp-jpost | 3.39 | 55.35 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-JPOST
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.29 ▼0.07 | 1.94 ▲0.32 | 39.70 ▼2.15 |
Dashboard /wp-admin | 2,235 ▲55 | 5.63 ▼0.20 | 90.11 ▲1.12 | 52.45 ▲10.27 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.98 ▼0.01 | 39.93 ▲4.75 | 51.77 ▲12.03 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 22.90 ▼0.29 | 608.78 ▼76.96 | 50.26 ▼14.93 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.27 ▲0.17 | 99.07 ▼11.28 | 50.19 ▲3.72 |
采集列表 /wp-admin/edit.php?post_type=wp-jpost | 1,155 | 1.96 | 34.18 | 68.21 |
添加 /wp-admin/post-new.php?post_type=wp-jpost | 1,960 | 2.81 | 58.72 | 100.25 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (https://www.jiloc.com/wp-content/uploads/2017/08/TIM%E6%88%AA%E5%9B%BE20170803143653.png), #2 (https://www.jiloc.com/wp-content/uploads/2017/08/TIM%E6%88%AA%E5%9B%BE20170803143708.png), #3 (https://www.jiloc.com/wp-content/uploads/2017/08/TIM%E6%88%AA%E5%9B%BE20170803143850.png)
wp-jpost/plugin.php 92% from 13 tests
The main PHP script in "WP-JPOST" version 2.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-jpost.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,871 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 592 | 803 | 3,492 |
JavaScript | 2 | 52 | 22 | 267 |
CSS | 2 | 7 | 8 | 112 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 113.83 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 3 | 2.17% |
▷ Public methods | 115 | 83.33% |
▷ Protected methods | 15 | 10.87% |
▷ Private methods | 8 | 5.80% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/contact.png | 19.05KB | 10.65KB | ▼ 44.12% |