Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲1.04MB] [CPU: ▲4.92ms] Passed 4 tests
A check of server-side resources used by Easy Photography Portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.76 | 40.93 ▼1.87 |
Dashboard /wp-admin | 4.45 ▲1.15 | 56.13 ▲6.96 |
Posts /wp-admin/edit.php | 4.48 ▲1.12 | 58.14 ▲13.01 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 95.25 ▲1.56 |
Media Library /wp-admin/upload.php | 4.38 ▲1.15 | 50.39 ▲17.21 |
All Entries /wp-admin/edit.php?post_type=phort_post | 4.46 | 52.90 |
Categories /wp-admin/edit-tags.php?taxonomy=phort_post_category&post_type=phort_post | 4.37 | 43.89 |
New Portfolio Entry /wp-admin/post-new.php?post_type=phort_post | 7.39 | 93.35 |
Portfolio Settings /wp-admin/edit.php?post_type=phort_post&page=phort_options | 4.74 | 47.03 |
Server storage [IO: ▲3.65MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 472 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
phort_options |
phort_sample_post |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Photography Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲192 | 13.37 ▼1.00 | 1.67 ▼0.71 | 35.63 ▼18.90 |
Dashboard /wp-admin | 2,276 ▲88 | 5.02 ▲0.15 | 113.33 ▼6.41 | 46.50 ▼2.30 |
Posts /wp-admin/edit.php | 2,162 ▲73 | 2.17 ▲0.13 | 42.63 ▲6.39 | 39.45 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,572 ▲30 | 23.24 ▲0.03 | 596.38 ▼17.02 | 62.76 ▲7.38 |
Media Library /wp-admin/upload.php | 1,495 ▲107 | 4.50 ▲0.30 | 106.72 ▲3.69 | 45.85 ▲4.06 |
All Entries /wp-admin/edit.php?post_type=phort_post | 1,718 | 2.14 | 40.56 | 37.59 |
Categories /wp-admin/edit-tags.php?taxonomy=phort_post_category&post_type=phort_post | 1,334 | 2.50 | 30.73 | 32.78 |
New Portfolio Entry /wp-admin/post-new.php?post_type=phort_post | 6,460 | 21.17 | 903.21 | 34.82 |
Portfolio Settings /wp-admin/edit.php?post_type=phort_post&page=phort_options | 1,267 | 2.34 | 27.50 | 43.10 |
Uninstaller [IO: ▲0.18MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- phort_sample_post
- theysaidso_admin_options
- widget_theysaidso_widget
- phort_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/photography-portfolio/public/templates/gallery/item/video.php
- > /wp-content/plugins/photography-portfolio/public/templates/gallery/item/image.php
- 73× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'Photography_Portfolio\\Frontend\\Popup_Gallery\\Abstract_Popup_Gallery' not found in wp-content/plugins/photography-portfolio/Photography_Portfolio/Frontend/Popup_Gallery/lightGallery.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/photography-portfolio/public/templates/partials/wrapper-start.php:1
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/photography-portfolio/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function phort_get_template() in wp-content/plugins/photography-portfolio/public/templates/single-portfolio.php:12
- > PHP Fatal error
Uncaught Error: Class 'Photography_Portfolio\\Frontend\\Layout\\Single\\Single_Portfolio_Layout' not found in wp-content/plugins/photography-portfolio/Photography_Portfolio/Frontend/Layout/Single/Masonry/Single_Column_Layout.php:9
- > 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 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 28 tag instead of maximum 10
photography-portfolio/photography-portfolio.php Passed 13 tests
The primary PHP file in "Easy Photography Portfolio" version 1.5.1 is used by WordPress to initiate all plugin functionality
119 characters long description:
Add a photography portfolio to any WordPress theme. Designed for Photographers, yet made with theme developers in mind.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin59,538 lines of code in 311 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 135 | 3,898 | 7,953 | 10,289 |
CSS | 17 | 345 | 1,294 | 5,471 |
JavaScript | 13 | 1,335 | 1,079 | 4,900 |
JSON | 4 | 0 | 0 | 4,351 |
Sass | 17 | 306 | 29 | 1,410 |
Markdown | 3 | 241 | 0 | 746 |
SVG | 2 | 0 | 0 | 48 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 105 | |
▷ Abstract classes | 12 | 11.43% |
▷ Concrete classes | 93 | 88.57% |
▷ Final classes | 0 | 0.00% |
Methods | 741 | |
▷ Static methods | 119 | 16.06% |
▷ Public methods | 635 | 85.70% |
▷ Protected methods | 95 | 12.82% |
▷ Private methods | 11 | 1.48% |
Functions | 94 | |
▷ Named functions | 84 | 89.36% |
▷ Anonymous functions | 10 | 10.64% |
Constants | 15 | |
▷ Global constants | 9 | 60.00% |
▷ Class constants | 6 | 40.00% |
▷ Public constants | 6 | 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
18 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/build/img/photoswipe/default-skin.png | 0.53KB | 0.72KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
public/build/img/vimeo-play.png | 5.30KB | 1.56KB | ▼ 70.65% |
vendor/webdevstudios/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |