Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼128.51ms] Passed 4 tests
Analyzing server-side resources used by Product Table - Easy Digital Downloads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 43.72 ▲9.06 |
Dashboard /wp-admin | 3.13 ▲0.08 | 52.60 ▲5.41 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 59.69 ▲11.54 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 126.54 ▼525.85 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 39.45 ▼2.67 |
Product Table /wp-admin/edit.php?post_type=download&page=eddpt-settings | 2.80 | 23.98 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Product Table - Easy Digital Downloads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,870 ▲288 | 16.97 ▲1.39 | 24.93 ▲14.53 | 48.41 ▼0.36 |
Dashboard /wp-admin | 3,017 ▲86 | 5.99 ▲0.05 | 164.39 ▼4.96 | 115.24 ▼5.14 |
Posts /wp-admin/edit.php | 2,792 ▲53 | 2.75 ▲0.04 | 82.94 ▲17.69 | 97.21 ▲9.58 |
Add New Post /wp-admin/post-new.php | 1,650 ▲35 | 21.31 ▼0.17 | 371.65 ▼8.71 | 141.06 ▲16.50 |
Media Library /wp-admin/upload.php | 1,858 ▲51 | 5.07 ▲0.04 | 176.55 ▼1.65 | 126.25 ▼6.56 |
Product Table /wp-admin/edit.php?post_type=download&page=eddpt-settings | 28 | 0.90 | 0.16 | 13.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/edd-product-table/eddpt.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/edd-product-table/inc/eddpt-layout.php:111
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/edd-product-table/eddpt.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-product-table/inc/eddpt-functions.php:15
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/edd-product-table/eddpt.php on line 22
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/edd-product-table/eddpt.php on line 22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=download&page=eddpt-settings
- > Network (severe)
wp-admin/edit.php?post_type=download&page=eddpt-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #2 is required in edd-product-table/assets to your readme.txt
edd-product-table/eddpt.php 77% from 13 tests
The primary PHP file in "Product Table - Easy Digital Downloads" version 1.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("edd-product-table.php" instead of "eddpt.php")
- Domain Path: The domain path is invalid: folder "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin992 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 80 | 342 |
CSS | 3 | 49 | 4 | 312 |
JavaScript | 3 | 22 | 16 | 195 |
SVG | 1 | 0 | 1 | 77 |
Markdown | 1 | 33 | 0 | 66 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dataTables/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/dataTables/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/dataTables/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |