Benchmarks
Plugin footprint 83% from 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼0.94ms] Passed 4 tests
An overview of server-side resources used by DPortfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.43 ▼0.52 |
Dashboard /wp-admin | 3.56 ▲0.26 | 48.41 ▲1.72 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 50.20 ▲2.62 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 85.77 ▼6.25 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 36.71 ▲1.29 |
All Portfolios /wp-admin/edit.php?post_type=dportfolio | 3.53 | 37.75 |
Add New /wp-admin/post-new.php?post_type=dportfolio | 3.61 | 55.51 |
Settings /wp-admin/edit.php?post_type=dportfolio&page=dportfolio_settings | 3.49 | 40.14 |
Support /wp-admin/edit.php?post_type=dportfolio&page=dportfolio_support | 3.45 | 33.99 |
Categories /wp-admin/edit-tags.php?taxonomy=dportfolio_categories&post_type=dportfolio | 3.48 | 41.40 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
DPortfolio: 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,984 ▲223 | 13.80 ▼0.50 | 10.84 ▲9.10 | 38.65 ▼5.22 |
Dashboard /wp-admin | 2,236 ▲59 | 5.58 ▼0.10 | 83.35 ▼4.39 | 36.74 ▼9.52 |
Posts /wp-admin/edit.php | 2,141 ▲62 | 1.99 ▼0.02 | 34.91 ▼2.33 | 33.47 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.21 ▲0.29 | 609.98 ▼4.84 | 88.78 ▲30.19 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.27 ▲0.04 | 102.09 ▲1.90 | 40.84 ▼5.69 |
All Portfolios /wp-admin/edit.php?post_type=dportfolio | 1,113 | 1.97 | 32.55 | 30.14 |
Add New /wp-admin/post-new.php?post_type=dportfolio | 2,360 | 7.57 | 191.29 | 76.01 |
Settings /wp-admin/edit.php?post_type=dportfolio&page=dportfolio_settings | 1,119 | 3.20 | 57.43 | 28.83 |
Support /wp-admin/edit.php?post_type=dportfolio&page=dportfolio_support | 827 | 2.03 | 24.22 | 29.22 |
Categories /wp-admin/edit-tags.php?taxonomy=dportfolio_categories&post_type=dportfolio | 1,312 | 2.12 | 33.16 | 33.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=dportfolio
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dportfolio/templates/dportfolio-after-single-content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dportfolio/templates/dportfolio-before-single-content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dportfolio/templates/dportfolio-index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (DPortfolio Shortcode), #2 (DPortfolio Portfolio), #3 (DPortfolio Categories), #4 (DPortfolio Settings Thumbnails), #5 (DPortfolio Settings Portfolio page), #6 (DPortfolio Settings URL slugs)
dportfolio/dportfolio.php 92% from 13 tests
The principal PHP file in "DPortfolio" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.9.9" instead of "3.9.0")
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
Success! There were no dangerous files found in this plugin1,493 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 553 | 268 | 1,052 |
CSS | 2 | 45 | 71 | 190 |
PO File | 1 | 60 | 73 | 161 |
JavaScript | 4 | 36 | 33 | 90 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 3 | 8.11% |
▷ Private methods | 3 | 8.11% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 31.38KB | 30.76KB | ▼ 1.99% |
screenshot-4.png | 20.50KB | 19.81KB | ▼ 3.36% |
screenshot-1.png | 40.83KB | 39.77KB | ▼ 2.60% |
screenshot-6.png | 21.92KB | 21.28KB | ▼ 2.93% |
screenshot-5.png | 14.88KB | 14.14KB | ▼ 4.92% |