Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.77MB] [CPU: ▼171.93ms] Passed 4 tests
An overview of server-side resources used by Opal Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 50.50 ▲22.82 |
Dashboard /wp-admin | 2.88 ▼0.17 | 25.30 ▼17.51 |
Posts /wp-admin/edit.php | 2.88 ▼0.24 | 22.04 ▼34.35 |
Add New Post /wp-admin/post-new.php | 2.88 ▼2.55 | 23.02 ▼628.82 |
Media Library /wp-admin/upload.php | 2.88 ▼0.12 | 25.48 ▼7.03 |
Opal Portfolio /wp-admin/edit.php?post_type=opal_portfolio | 2.88 | 24.52 |
Add New Portfolio /wp-admin/post-new.php?post_type=opal_portfolio | 2.88 | 26.77 |
Settings /wp-admin/edit.php?post_type=opal_portfolio&page=portfolio-settings | 2.88 | 23.27 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=opal_portfolio | 2.88 | 25.77 |
Server storage [IO: ▲2.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 174 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Opal Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,897 ▲260 | 16.92 ▲1.02 | 24.62 ▲15.29 | 58.91 ▲11.10 |
Dashboard /wp-admin | 3,033 ▲99 | 5.98 ▲0.04 | 144.19 ▼8.28 | 110.27 ▼11.45 |
Posts /wp-admin/edit.php | 2,799 ▲60 | 2.73 ▲0.04 | 67.80 ▼2.83 | 93.07 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,727 ▲44 | 15.60 ▼3.23 | 376.55 ▼13.50 | 110.24 ▼5.65 |
Media Library /wp-admin/upload.php | 1,867 ▲60 | 5.06 ▲0.05 | 167.90 ▲10.95 | 123.92 ▲0.14 |
Opal Portfolio /wp-admin/edit.php?post_type=opal_portfolio | 1,478 | 2.65 | 72.14 | 79.91 |
Add New Portfolio /wp-admin/post-new.php?post_type=opal_portfolio | 3,890 | 11.21 | 315.21 | 165.36 |
Settings /wp-admin/edit.php?post_type=opal_portfolio&page=portfolio-settings | 1,211 | 2.49 | 68.64 | 76.90 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=opal_portfolio | 1,801 | 2.56 | 70.92 | 83.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=opal_portfolio
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/opal-portfolios/includes/admin/screens/class-help.php
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'Opalportfolio_Portfolios' not found in wp-content/plugins/opal-portfolios/templates/single-portfolios/layout-1.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Notice
Undefined variable: field in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/custom-fields/upload/media-tpl.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/opal-portfolios/includes/vendors/cmb2/libraries/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/opal-portfolios/templates/content-data-none.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in opal-portfolios/assets to your readme.txt
opal-portfolios/opalportfolio.php 92% from 13 tests
The entry point to "Opal Portfolio" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("opal-portfolios.php" instead of "opalportfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected24,774 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 2,730 | 6,480 | 10,545 |
CSS | 23 | 1,191 | 1,213 | 9,302 |
SVG | 2 | 0 | 0 | 2,718 |
JavaScript | 13 | 394 | 477 | 1,655 |
Markdown | 2 | 188 | 0 | 554 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 8 | 9.09% |
▷ Concrete classes | 80 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 613 | |
▷ Static methods | 116 | 18.92% |
▷ Public methods | 505 | 82.38% |
▷ Protected methods | 95 | 15.50% |
▷ Private methods | 13 | 2.12% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 15 | 48.39% |
▷ Class constants | 16 | 51.61% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendors/cmb2/libraries/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/3rd/lightgallery/img/youtube-play.png | 2.64KB | 2.37KB | ▼ 10.06% |
assets/images/menu-icon-red.png | 1.29KB | 0.49KB | ▼ 62.22% |
includes/vendors/cmb2/libraries/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
includes/vendors/cmb2/libraries/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |