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.05MB] [CPU: ▼2.03ms] Passed 4 tests
This is a short check of server-side resources used by BP Site Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.29 ▼0.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.91 ▲0.07 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 47.01 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.73 ▼10.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.04 ▲1.96 |
BP Site Post /wp-admin/options-general.php?page=bp-site-post-settings | 3.70 | 35.28 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_bpsp_site_post_widget |
can_compress_scripts |
bpsp_site_post_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BP Site Post: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 13.47 ▼0.81 | 8.70 ▲7.08 | 41.59 ▲0.81 |
Dashboard /wp-admin | 2,202 ▲31 | 5.60 ▲0.03 | 84.91 ▼4.71 | 38.08 ▼2.85 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.04 | 35.38 ▼12.44 | 32.58 ▼9.52 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.18 ▼0.12 | 672.34 ▼18.82 | 57.88 ▲6.50 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.04 | 102.57 ▲6.23 | 51.35 ▲6.36 |
BP Site Post /wp-admin/options-general.php?page=bp-site-post-settings | 1,371 | 2.00 | 23.10 | 30.41 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_bpsp_site_post_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bp-site-post/templates/my-posts-moderation.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/bp-site-post/templates/my-posts-pending.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_displayed_user_id() in wp-content/plugins/bp-site-post/templates/my-posts.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bp-site-post/inc/bpsp-widget.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=bp-site-post-settings
- > Network (severe)
wp-content/plugins/bp-site-post/views/images/bpsp-grey34x34.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Donate link: Invalid url: "paypal.me/GeorgeChaplin"
bp-site-post/bp-site-post.php Passed 13 tests
The main PHP file in "BP Site Post" ver. 1.7.6 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Write, publish and edit posts in the front end, BP Post Status enabled
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,317 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 535 | 409 | 2,448 |
PO File | 1 | 175 | 187 | 441 |
CSS | 2 | 67 | 5 | 351 |
JavaScript | 4 | 15 | 6 | 77 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 65.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 80 | |
▷ Named functions | 79 | 98.75% |
▷ Anonymous functions | 1 | 1.25% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/accepted_48.png | 5.13KB | 1.89KB | ▼ 63.13% |
img/cancel_48.png | 5.19KB | 1.92KB | ▼ 63.09% |