Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.21MB] [CPU: ▼41.42ms] Passed 4 tests
This is a short check of server-side resources used by Plug & Play
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 12.91 ▼28.31 |
Dashboard /wp-admin | 2.81 ▼0.50 | 19.96 ▼29.50 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 16.02 ▼28.87 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.08 | 15.66 ▼79.01 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 14.81 ▼20.09 |
/wp-admin/admin.php?page=plug-and-play--menu | 2.81 | 18.48 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
bPressSignature |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
bPressServices |
Browser metrics Passed 4 tests
Plug & Play: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,010 ▲275 | 15.65 ▲1.22 | 27.23 ▲25.29 | 60.83 ▲13.58 |
Dashboard /wp-admin | 2,251 ▲63 | 4.97 ▲0.06 | 101.82 ▼15.76 | 76.25 ▲31.80 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.24 ▲0.22 | 35.28 ▼2.45 | 34.33 ▲2.36 |
Add New Post /wp-admin/post-new.php | 1,551 ▲34 | 17.59 ▼0.02 | 740.79 ▲86.88 | 37.15 ▼10.37 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.31 ▲0.10 | 96.06 ▼2.25 | 67.37 ▲23.66 |
/wp-admin/admin.php?page=plug-and-play--menu | 877 | 1.84 | 28.61 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+322
count(): Parameter must be an array or an object that implements Countable
- The uninstall procedure has failed, leaving 8 options in the database
- bPressSignature
- bPressServices
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+297
count(): Parameter must be an array or an object that implements Countable
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Notice in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+298
Uninitialized string offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+298
Illegal string offset 'category'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+298
Illegal string offset 'title'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Notice in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+310
Undefined variable: serviceIndex
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Notice in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+310
String offset cast occurred
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+74
Illegal string offset 'products'
- > GET request to /wp-admin/admin.php?page=plug-and-play--menu
- > Warning in wp-content/plugins/plug-and-play/bPress/WP2P.class.php+307
Illegal string offset 'name'
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plug-and-play/bPress/WP2P.class.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Maintenance Mode Configuration), #2 (Maintenance Mode live), #3 (Versus), #4 (Login Logo)
plug-and-play/index.php 85% from 13 tests
Analyzing the main PHP file in "Plug & Play" version 1.2
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("plug-and-play.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
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
There were no executable files found in this plugin1,608 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 54 | 180 | 698 |
PHP | 2 | 47 | 89 | 526 |
CSS | 1 | 8 | 1 | 214 |
PO File | 3 | 61 | 67 | 170 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 87.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 6.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.49MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bPress/images/16.png | 1.47KB | 0.68KB | ▼ 53.88% |
screenshot-3.png | 296.67KB | 77.08KB | ▼ 74.02% |
bPress/images/32.png | 2.29KB | 1.31KB | ▼ 42.82% |
bPress/images/wp-live-support.png | 5.12KB | 1.76KB | ▼ 65.71% |
bPress/images/plug-and-play.png | 4.91KB | 1.75KB | ▼ 64.38% |