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
Install script ran successfully
Server metrics [RAM: ▲3.75MB] [CPU: ▼295.46ms] Passed 4 tests
An overview of server-side resources used by JDs Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.56 ▲4.04 | 87.97 ▲24.59 |
Dashboard /wp-admin | 7.57 ▲4.17 | 64.78 ▼18.81 |
Posts /wp-admin/edit.php | 7.57 ▲3.94 | 70.92 ▲29.30 |
Add New Post /wp-admin/post-new.php | 9.81 ▲2.84 | 129.00 ▼1,212.30 |
Media Library /wp-admin/upload.php | 7.57 ▲4.28 | 52.86 ▲24.68 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.57 | 55.76 |
Server storage [IO: ▲6.06MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 285 new files
Database: no new tables, 8 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
wp_jds_options |
fs_accounts |
fs_api_cache |
widget_wp_jds_recent_portfolio_widget |
fs_gdpr |
wp_jds_set_option |
Browser metrics Passed 4 tests
A check of browser resources used by JDs Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,959 ▲205 | 16.70 ▲1.17 | 12.65 ▲6.38 | 2.76 ▼0.34 |
Dashboard /wp-admin | 2,930 ▲69 | 6.05 ▼0.12 | 116.83 ▼22.23 | 218.92 ▲57.79 |
Posts /wp-admin/edit.php | 2,740 ▲70 | 3.24 ▼0.02 | 65.30 ▼25.75 | 148.79 ▲12.44 |
Add New Post /wp-admin/post-new.php | 1,833 ▲172 | 21.28 ▼0.22 | 405.31 ▲22.94 | 184.59 ▲22.89 |
Media Library /wp-admin/upload.php | 1,744 ▲43 | 5.50 ▲0.01 | 160.51 ▲17.08 | 213.99 ▲26.82 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,463 | 2.49 | 56.87 | 134.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- fs_accounts
- fs_api_cache
- fs_active_plugins
- fs_gdpr
- wp_jds_options
- wp_jds_set_option
- fs_debug_mode
- widget_wp_jds_recent_portfolio_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jds-portfolio/freemius/templates/ajax-loader.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/jds-portfolio/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/jds-portfolio/freemius/templates/account/partials/addon.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (33 tag instead of maximum 10)
jds-portfolio/jds-portfolio.php 92% from 13 tests
The main PHP script in "JDs Portfolio" version 2.1.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin43,799 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 6,489 | 14,918 | 26,920 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 9 | 245 | 183 | 919 |
CSS | 16 | 105 | 42 | 651 |
SVG | 1 | 0 | 0 | 565 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 68.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,078 | |
▷ Static methods | 166 | 15.40% |
▷ Public methods | 764 | 70.87% |
▷ Protected methods | 15 | 1.39% |
▷ Private methods | 299 | 27.74% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 121 | |
▷ Global constants | 101 | 83.47% |
▷ Class constants | 20 | 16.53% |
▷ Public constants | 20 | 100.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
32 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/prettyPhoto/default/default_thumb.png | 1.50KB | 0.61KB | ▼ 59.47% |
images/thumbnails/flash-logo.png | 6.26KB | 3.92KB | ▼ 37.35% |
images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |
images/prettyPhoto/dark_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |