Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioShortcodeWidget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; NimblePortfolioShortcodeWidget has a deprecated constructor
Server metrics [RAM: ▼1.63MB] [CPU: ▼54.08ms] Passed 4 tests
Server-side resources used by Wordpress Picture / Portfolio / Media Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.10 | 6.46 ▼38.19 |
Dashboard /wp-admin | 2.38 ▼0.93 | 7.00 ▼43.28 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 8.02 ▼46.00 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 7.16 ▼88.84 |
Media Library /wp-admin/upload.php | 2.38 ▼0.85 | 12.93 ▼24.18 |
Filters /wp-admin/edit-tags.php?taxonomy=nimble-portfolio-type&post_type=portfolio | 2.38 | 7.81 |
Redux Framework /wp-admin/tools.php?page=redux-about | 2.38 | 8.11 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio | 2.38 | 7.44 |
Generate Shortcode /wp-admin/edit.php?post_type=portfolio&page=generate_shortcode_page_options | 2.38 | 6.90 |
Add Portfolio Item /wp-admin/post-new.php?post_type=portfolio | 2.38 | 8.30 |
Configuration /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options | 2.38 | 8.76 |
Server storage [IO: ▲8.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 597 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
widget_nimble-portfolio-recent-items-widget |
redux_version_upgraded_from |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
generate_shortcode_page-transients |
nimble_portfolio_configuration-transients |
widget_recent-comments |
widget_nimble-portfolio-shortcode-widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Picture / Portfolio / Media Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲316 | 13.83 ▼0.46 | 9.70 ▲8.08 | 40.94 ▼1.59 |
Dashboard /wp-admin | 2,327 ▲150 | 5.82 ▲0.15 | 89.24 ▲1.42 | 99.15 ▲56.52 |
Posts /wp-admin/edit.php | 2,168 ▲69 | 2.26 ▲0.27 | 34.17 ▼7.47 | 41.51 ▲4.33 |
Add New Post /wp-admin/post-new.php | 1,582 ▲48 | 21.13 ▲2.76 | 675.86 ▲34.31 | 38.20 ▼41.47 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.48 ▲0.30 | 98.19 ▼7.14 | 80.73 ▲35.39 |
Filters /wp-admin/edit-tags.php?taxonomy=nimble-portfolio-type&post_type=portfolio | 1,374 | 1.99 | 30.23 | 45.76 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,148 | 3.77 | 74.64 | 73.00 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio | 1,158 | 2.17 | 33.89 | 33.31 |
Generate Shortcode /wp-admin/edit.php?post_type=portfolio&page=generate_shortcode_page_options | 1,734 | 3.35 | 83.33 | 70.60 |
Add Portfolio Item /wp-admin/post-new.php?post_type=portfolio | 2,763 | 7.90 | 173.29 | 153.43 |
Configuration /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options | 2,636 | 3.21 | 71.31 | 90.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioShortcodeWidget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; NimblePortfolioShortcodeWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 13 options
- widget_recent-posts
- widget_nimble-portfolio-recent-items-widget
- generate_shortcode_page-transients
- redux_version_upgraded_from
- generate_shortcode_page
- can_compress_scripts
- theysaidso_admin_options
- widget_nimble-portfolio-shortcode-widget
- widget_theysaidso_widget
- nimble_portfolio_configuration-transients
- ...
Smoke tests 25% 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioShortcodeWidget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; NimblePortfolioShortcodeWidget has a deprecated constructor
- 14 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioRecentItemsWidget.php+13
Function create_function() is deprecated
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioRecentItemsWidget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; NimblePortfolioRecentItemsWidget has a deprecated constructor
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Warning in wp-content/plugins/nimble-portfolio/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Deprecated in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioLessC.php+2593
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/nimble-portfolio/nimble-portfolio.php+362
Undefined index: nimble_portfolio_noncename
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Notice in wp-content/plugins/nimble-portfolio/nimble-portfolio.php+292
Undefined index: global-settings
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Redux' not found in wp-content/plugins/nimble-portfolio/admin/redux-extensions/extensions-init.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioRecentItemsWidget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioShortcodeWidget.php:4
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/nimble-portfolio/includes/prettyphoto/admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nimble-portfolio/admin/redux-framework/templates/panel/header_stickybar.tpl.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nimble-portfolio/skins/default/items.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/nimble-portfolio/admin/redux-framework/inc/extensions/customizer/inc/customizer_control.php:4
- > PHP Notice
Undefined variable: ctype in wp-content/plugins/nimble-portfolio/includes/prettyphoto/download-image.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nimble-portfolio/includes/class.NimblePortfolioShortcodeWidget.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nimble-portfolio/admin/redux-framework/templates/panel/menu_container.tpl.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Javascript (severe) in unknown
/wp-content/plugins/nimble-portfolio/includes/admin.js?ver=3.0.1 2:37 Uncaught TypeError: $(...).live is not a function
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=nimble_portfolio_configuration_options
- > Javascript (severe) in unknown
/wp-content/plugins/nimble-portfolio/skins/default/admin.js?ver=3.0.1 4:25 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Network (severe)
wp-content/plugins/nimble-portfolio/skins/default/images/loading.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=portfolio
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Nimble Portfolio - Shortcode Generator), #2 (Nimble Portfolio - Widgets), #3 (Nimble Portfolio - Options and Separate Gallery meta boxes on Add New Item page), #4 (Nimble Portfolio - Items listing), #5 (Nimble Portfolio - Frontend Display), #6 (Nimble Portfolio - Picture in lightbox), #7 (Nimble Portfolio - Video in lightbox), #8 (Nimble Portfolio - Default Skin options), #9 (Nimble Portfolio - Global Settings), #10 (Nimble Portfolio - prettyPhoto Settings)
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
nimble-portfolio/nimble-portfolio.php 92% from 13 tests
"Wordpress Picture / Portfolio / Media Gallery" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected52,596 lines of code in 418 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 5,375 | 6,594 | 24,176 |
JavaScript | 177 | 3,559 | 3,193 | 18,103 |
Sass | 48 | 589 | 60 | 5,373 |
CSS | 53 | 412 | 199 | 2,877 |
SVG | 2 | 0 | 0 | 1,069 |
LESS | 4 | 91 | 79 | 804 |
Markdown | 2 | 44 | 0 | 103 |
Bourne Shell | 1 | 24 | 0 | 55 |
JSON | 1 | 0 | 0 | 36 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 40.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 851.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 125 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 125 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,105 | |
▷ Static methods | 169 | 15.29% |
▷ Public methods | 643 | 58.19% |
▷ Protected methods | 411 | 37.19% |
▷ Private methods | 51 | 4.62% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 57 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 57 | 100.00% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
63 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/prettyphoto/img/pp_themes/facebook/contentPatternLeft.png | 0.13KB | 0.10KB | ▼ 24.82% |
admin/redux-framework/assets/img/3cm.png | 2.96KB | 0.29KB | ▼ 90.35% |
admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/prettyphoto/img/pp_themes/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |