Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by Marketpress Frontend
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.80 ▼1.60 |
Dashboard /wp-admin | 3.50 ▲0.20 | 46.79 ▼3.05 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.66 ▼8.42 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 85.68 ▼11.02 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.33 ▼0.61 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_store_frontend |
New WordPress options |
---|
can_compress_scripts |
custom_field_db_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Marketpress Frontend
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,041 ▲306 | 13.95 ▼0.43 | 10.14 ▲8.36 | 41.65 ▼7.44 |
Dashboard /wp-admin | 2,226 ▲35 | 5.86 ▲0.99 | 101.27 ▼11.67 | 77.77 ▲34.33 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.02 ▲0.01 | 35.83 ▼0.65 | 33.24 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.49 ▼5.77 | 735.85 ▲67.78 | 53.37 ▲6.15 |
Media Library /wp-admin/upload.php | 1,396 ▲17 | 4.21 ▲0.03 | 104.66 ▲0.93 | 87.19 ▲44.76 |
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
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_store_frontend
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- custom_field_db_version
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/marketpress-frontend/lib/help.php
- 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-frontend/lib/edit_post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-frontend/lib/wpmpf-functions.php:4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/marketpress-frontend/lib/custom-filed-functions.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_Action() in wp-content/plugins/marketpress-frontend/lib/ajax-upload.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/marketpress-frontend/lib/lost.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-frontend/lib/post.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/marketpress-frontend/lib/setting.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-frontend/lib/support/marketpress.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/marketpress-frontend/lib/wp-store-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/marketpress-frontend/lib/payment-setting.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: membership, frontend, plugins, marketpress, ecommerce...
marketpress-frontend/wp-mp-frontend.php 92% from 13 tests
The main PHP file in "Marketpress Frontend" ver. 2.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("marketpress-frontend.php" instead of "wp-mp-frontend.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,624 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 616 | 338 | 3,750 |
CSS | 4 | 0 | 2 | 608 |
JavaScript | 5 | 42 | 36 | 266 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/add.png | 18.09KB | 0.97KB | ▼ 94.62% |
lib/images/close-button.png | 0.83KB | 0.90KB | 0.00% |
images/error.png | 0.68KB | 0.72KB | 0.00% |
images/success.png | 0.52KB | 0.52KB | 0.00% |
lib/images/add2.png | 14.94KB | 0.96KB | ▼ 93.58% |