Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲3.61MB] [CPU: ▲18.32ms] Passed 4 tests
Server-side resources used by a3 Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.96 ▲3.49 | 63.57 ▲20.52 |
Dashboard /wp-admin | 7.01 ▲3.66 | 66.07 ▲2.55 |
Posts /wp-admin/edit.php | 7.07 ▲3.70 | 74.18 ▲22.42 |
Add New Post /wp-admin/post-new.php | 9.55 ▲3.66 | 126.64 ▲29.57 |
Media Library /wp-admin/upload.php | 6.87 ▲3.63 | 60.46 ▲27.80 |
Shortcodes /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolio-shortcodes | 6.89 | 56.74 |
Portfolio Items /wp-admin/edit.php?post_type=a3-portfolio | 6.95 | 59.62 |
Attributes /wp-admin/edit.php?post_type=a3-portfolio&page=portfolio-attributes | 6.83 | 53.90 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=a3-portfolio | 7.09 | 59.14 |
Add Item /wp-admin/post-new.php?post_type=a3-portfolio | 7.15 | 85.63 |
General Settings /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings | 6.97 | 462.60 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=a3-portfolio | 7.08 | 68.57 |
Server storage [IO: ▲3.16MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 316 new files
Database: 2 new tables, 20 new options
New tables |
---|
wp_a3_portfolio_categorymeta |
wp_a3_portfolio_attributes |
New WordPress options |
---|
a3_portfolios_google_font_list |
widget_widget_a3_portfolio_tags |
portfolio_inner_container_single_main_image_width_reset |
db_upgraded |
a3_portfolio_global_item_expander_settings |
widget_recent-posts |
widget_widget_a3_portfolio_categories |
can_compress_scripts |
a3_portfolios_clean_on_deletion |
widget_widget_a3_portfolio_attribute_filter |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for a3 Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲98 | 14.72 ▲0.45 | 1.75 ▲0.13 | 39.37 ▼5.23 |
Dashboard /wp-admin | 2,246 ▲72 | 5.59 ▼0.08 | 103.91 ▲5.53 | 48.26 ▲1.81 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 1.95 ▲0.01 | 41.49 ▼0.11 | 36.01 ▲3.37 |
Add New Post /wp-admin/post-new.php | 6,413 ▲4,887 | 28.49 ▲5.33 | 832.59 ▲227.97 | 55.86 ▲6.38 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.16 ▼0.11 | 94.39 ▼0.35 | 65.29 ▲22.59 |
Shortcodes /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolio-shortcodes | 1,269 | 3.74 | 66.25 | 28.96 |
Portfolio Items /wp-admin/edit.php?post_type=a3-portfolio | 1,157 | 1.95 | 32.93 | 30.71 |
Attributes /wp-admin/edit.php?post_type=a3-portfolio&page=portfolio-attributes | 1,007 | 2.00 | 27.38 | 29.94 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=a3-portfolio | 1,458 | 2.46 | 46.31 | 36.11 |
Add Item /wp-admin/post-new.php?post_type=a3-portfolio | 3,282 | 7.89 | 234.22 | 87.02 |
General Settings /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings | 1,940 | 3.71 | 74.61 | 104.92 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=a3-portfolio | 1,306 | 2.12 | 29.90 | 32.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_a3_portfolio_attributes
- wp_a3_portfolio_categorymeta
- The uninstall procedure has failed, leaving 19 options in the database
- a3_portfolio_shortcodes_setting
- a3_portfolio_global_item_expander_settings
- a3_portfolio_version
- portfolio_page_id
- db_upgraded
- widget_widget_a3_portfolio_attribute_filter
- can_compress_scripts
- a3_portfolio_item_posts_settings
- widget_widget_a3_portfolio_tags
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/a3-portfolio-isotope-addon): failed to open dir: No such file or directory
- > GET request to /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/a3-portfolio-dynamic-stylesheets-addon): failed to open dir: No such file or directory
- > GET request to /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/a3-portfolio-item-switcher-addon): failed to open dir: No such file or directory
- > GET request to /wp-admin/edit.php?post_type=a3-portfolio&page=a3-portfolios-settings
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/a3-portfolio-dynamic-gallery): failed to open dir: No such file or directory
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/a3-portfolio/templates/taxonomy-portfolio_cat_divi.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/a3-portfolio/a3-portfolio.php:24
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: image portfolio, image showcase, gallery, showcase, photo gallery...
a3-portfolio/a3-portfolio.php Passed 13 tests
The primary PHP file in "a3 Portfolio" version 3.1.2 is used by WordPress to initiate all plugin functionality
117 characters long description:
Creates a beautiful fully mobile responsive, fully customizable, Google images style portfolio to showcase your work.
Code Analysis 97% from 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 detected54,062 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 4,384 | 4,258 | 17,137 |
JavaScript | 73 | 2,930 | 2,451 | 16,713 |
JSON | 1 | 0 | 0 | 13,203 |
CSS | 34 | 310 | 179 | 3,850 |
LESS | 17 | 312 | 44 | 2,211 |
PO File | 1 | 339 | 492 | 789 |
HTML | 4 | 19 | 48 | 71 |
SVG | 11 | 4 | 0 | 68 |
Sass | 2 | 1 | 1 | 20 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 42.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 801.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 64 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 634 | |
▷ Static methods | 22 | 3.47% |
▷ Public methods | 457 | 72.08% |
▷ Protected methods | 143 | 22.56% |
▷ Private methods | 34 | 5.36% |
Functions | 118 | |
▷ Named functions | 109 | 92.37% |
▷ Anonymous functions | 9 | 7.63% |
Constants | 25 | |
▷ Global constants | 17 | 68.00% |
▷ Class constants | 8 | 32.00% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
39 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/slider-handle.png | 2.67KB | 1.71KB | ▼ 36.00% |
admin/assets/js/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/a-5-star-rating-would-be-appreciated.png | 3.38KB | 1.21KB | ▼ 64.25% |
(invalid) templates/images/no-image-large.png | 39.75KB | 0.00KB | ▼ 100.00% |
admin/assets/images/slider-handle1.png | 1.14KB | 1.17KB | 0.00% |