Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.09MB] [CPU: ▼42.51ms] Passed 4 tests
This is a short check of server-side resources used by Sell Media File with Stripe
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▼0.58 | 16.06 ▼27.82 |
Dashboard /wp-admin | 2.93 ▼0.38 | 18.16 ▼34.69 |
Posts /wp-admin/edit.php | 2.93 ▼0.43 | 17.89 ▼36.17 |
Add New Post /wp-admin/post-new.php | 2.93 ▼2.96 | 18.38 ▼71.36 |
Media Library /wp-admin/upload.php | 2.93 ▼0.30 | 17.32 ▼17.09 |
All Orders /wp-admin/edit.php?post_type=sellmediafile_order | 2.93 | 20.89 |
Settings /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-settings | 2.93 | 17.13 |
Add New /wp-admin/post-new.php?post_type=sellmediafile_order | 2.93 | 16.65 |
Debug /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-debug | 2.93 | 18.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sell Media File with Stripe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲67 | 13.54 ▼0.82 | 1.75 ▼0.22 | 39.37 ▼4.83 |
Dashboard /wp-admin | 2,256 ▲50 | 4.85 ▼0.21 | 108.94 ▼4.53 | 41.17 ▼0.75 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.02 ▲0.01 | 38.50 ▼0.81 | 38.67 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,574 ▲29 | 23.28 ▲0.07 | 660.19 ▲4.24 | 53.71 ▼1.70 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.26 ▲0.04 | 100.16 ▼7.74 | 45.58 ▲0.14 |
All Orders /wp-admin/edit.php?post_type=sellmediafile_order | 1,136 | 1.93 | 47.76 | 30.56 |
Settings /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-settings | 947 | 2.05 | 22.94 | 27.58 |
Add New /wp-admin/post-new.php?post_type=sellmediafile_order | 1,406 | 2.49 | 50.11 | 55.68 |
Debug /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-debug | 870 | 2.05 | 23.02 | 31.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-post-type.php+613
Invalid argument supplied for foreach()
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-debug
- > Warning in wp-includes/class-wp-post-type.php+613
Invalid argument supplied for foreach()
- > GET request to /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=sellmediafile_order&page=sell-media-file-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
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/sell-media-file/sell-media-file-order.php:143
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in sell-media-file/assets to your readme.txt
sell-media-file/main.php 92% from 13 tests
"Sell Media File with Stripe" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sell-media-file.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected713 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 70 | 39 | 713 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin