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.65MB] [CPU: ▼20.07ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Media API
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.95 ▲4.02 |
Dashboard /wp-admin | 3.32 ▼0.02 | 41.26 ▼16.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.98 ▲1.73 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 35.26 ▼66.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.21 ▲1.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooCommerce Media API: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.23 ▼1.15 | 1.94 ▼0.20 | 43.00 ▲3.39 |
Dashboard /wp-admin | 2,209 ▲20 | 4.87 ▼0.09 | 104.71 ▼14.64 | 37.60 ▼4.14 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▲0.01 | 35.22 ▼9.65 | 31.22 ▼5.98 |
Add New Post /wp-admin/post-new.php | 45 ▼1,474 | 0.44 ▼22.55 | 0.09 ▼701.75 | 10.39 ▼46.74 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.05 | 106.24 ▲3.03 | 67.81 ▲21.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_CRUD_Controller' not found in wp-content/plugins/woo-media-api/class-woocommerce-media-api-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_CRUD_Controller' not found in wp-content/plugins/woo-media-api/class-woocommerce-metadata-api-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_CRUD_Controller' not found in wp-content/plugins/woo-media-api/class-woocommerce-list-items-api-controller.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: media library, wordpress rest api, woocommerce api, woopos, woocommerce point of sale
woo-media-api/woocommerce-media-api.php 92% from 13 tests
The main file in "WooCommerce Media API" v. 2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-media-api.php" instead of "woocommerce-media-api.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
No dangerous file extensions were detected673 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 60 | 12 | 673 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected