Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.45ms] Passed 4 tests
A check of server-side resources used by Professional Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.64 ▲1.96 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.50 ▼15.84 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 52.75 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.13 ▼10.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.85 ▼2.62 |
Add New /wp-admin/post-new.php?post_type=prof-portfolio | 3.44 | 62.68 |
Professional Portfolio /wp-admin/edit.php?post_type=prof-portfolio | 3.33 | 40.92 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_entries&post_type=prof-portfolio | 3.28 | 36.69 |
Server storage [IO: ▲8.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 225 new files
Database: no new tables, 24 new options
New WordPress options |
---|
portfolio_detail_image_position |
widget_theysaidso_widget |
title_font_size |
number_of_item_per_page |
db_upgraded |
portfolio_detail_slider_button_default_color |
title_text_color |
portfolio_detail_text_color |
can_compress_scripts |
portfolio_pagination |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Professional Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,031 ▲270 | 13.58 ▼0.59 | 20.90 ▲19.31 | 51.47 ▲9.56 |
Dashboard /wp-admin | 2,239 ▲68 | 5.62 ▼0.13 | 103.52 ▲9.00 | 43.05 ▼1.61 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.00 ▲0.00 | 39.09 ▲2.09 | 36.78 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.05 ▼0.04 | 657.91 ▲11.62 | 64.21 ▲12.20 |
Media Library /wp-admin/upload.php | 1,450 ▲56 | 4.25 ▲0.08 | 97.70 ▼5.41 | 43.90 ▼4.91 |
Add New /wp-admin/post-new.php?post_type=prof-portfolio | 2,653 | 7.76 | 193.73 | 75.58 |
Professional Portfolio /wp-admin/edit.php?post_type=prof-portfolio | 1,164 | 1.98 | 32.16 | 33.03 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_entries&post_type=prof-portfolio | 1,324 | 2.12 | 28.03 | 30.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/professional-portfolio/professional-portfolio.php+40
Non-static method PPORT_Deactivator::deactivate() should not be called statically
- Zombie WordPress options detected upon uninstall: 24 options
- portfolio_pagination
- can_compress_scripts
- portfolio_detail_bg_color
- portfolio_detail_image_position
- number_of_item_per_row_tablet
- widget_recent-posts
- title_text_color
- widget_theysaidso_widget
- portfolio_detail_slider_button_active_color
- portfolio_display_page
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/professional-portfolio/classes/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/professional-portfolio/template/portfolio.php:1
- > 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 issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: Please a description for screenshot #0 in professional-portfolio/assets to your readme.txt
professional-portfolio/professional-portfolio.php Passed 13 tests
The principal PHP file in "Professional Portfolio" v. 1.0.4 is loaded by WordPress automatically on each request
39 characters long description:
Display portfolio in your selected page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin27,316 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 22 | 0 | 0 | 18,863 |
HTML | 19 | 2,159 | 0 | 4,767 |
PHP | 11 | 174 | 146 | 1,304 |
CSS | 22 | 241 | 45 | 1,204 |
JavaScript | 7 | 163 | 140 | 1,178 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 36 | 85.71% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 5 | 11.90% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 1.51MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/control.png | 1.38KB | 0.16KB | ▼ 88.37% |
assets/fonts/roboto-fontfacekit/web fonts/roboto_boldcondensed_macroman/specimen_files/RobotoCondensed-Bold-cleartype.png | 84.75KB | 44.73KB | ▼ 47.23% |
assets/fonts/roboto-fontfacekit/web fonts/roboto_thin_macroman/specimen_files/Roboto-Thin-cleartype.png | 78.75KB | 46.28KB | ▼ 41.24% |
assets/fonts/roboto-fontfacekit/web fonts/roboto_medium_macroman/specimen_files/Roboto-Medium-cleartype.png | 84.64KB | 44.89KB | ▼ 46.96% |
assets/fonts/roboto-fontfacekit/web fonts/roboto_lightcondenseditalic_macroman/specimen_files/RobotoCondensed-LightItalic-cleartype.png | 90.36KB | 55.31KB | ▼ 38.79% |