Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.69ms] Passed 4 tests
An overview of server-side resources used by Responsive Portfolio Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 50.59 ▲9.14 |
Dashboard /wp-admin | 3.45 ▲0.10 | 54.14 ▼8.42 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 53.91 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 90.00 ▼11.47 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.62 ▲9.27 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio-item | 3.40 | 44.39 |
Add New /wp-admin/post-new.php?post_type=portfolio-item | 3.50 | 60.31 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio-item | 3.37 | 40.44 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Responsive Portfolio Gallery: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲232 | 13.86 ▼0.77 | 10.52 ▲8.99 | 41.87 ▲0.07 |
Dashboard /wp-admin | 2,226 ▲46 | 5.58 ▼0.07 | 97.98 ▲5.83 | 42.80 ▼3.41 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.01 ▲0.03 | 39.89 ▼0.39 | 35.78 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.79 ▲0.46 | 604.45 ▲1.42 | 52.49 ▼9.32 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.15 ▼0.07 | 98.22 ▼3.58 | 43.82 ▼0.78 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio-item | 1,103 | 1.94 | 32.39 | 28.60 |
Add New /wp-admin/post-new.php?post_type=portfolio-item | 2,467 | 7.61 | 173.56 | 64.84 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio-item | 1,305 | 2.12 | 30.48 | 33.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/responsive-portfolio-gallery/responsive-portfolio-gallery.php+35
Non-static method ResponsivePortfolioGallery::unregister_post_type() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Two_Column_Portfolio_Shortcode' not found in wp-content/plugins/responsive-portfolio-gallery/shortcodes/two-column-portfolio.php:3
- > PHP Fatal error
Uncaught Error: Class 'Three_Column_Portfolio_Shortcode' not found in wp-content/plugins/responsive-portfolio-gallery/shortcodes/three-column-portfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/responsive-portfolio-gallery/templates/single-portfolio-item.php:8
- > PHP Fatal error
Uncaught Error: Class 'Four_Column_Portfolio_Shortcode' not found in wp-content/plugins/responsive-portfolio-gallery/shortcodes/four-column-portfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/responsive-portfolio-gallery/responsive-portfolio-gallery.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Full Screen Frontend Gallery), #2 (Mobile Devices Frontend Gallery), #3 (Single Portfolio Item Frontend), #4 (Adding A New Category), #5 (Adding A New Portfolio Item), #6 (Setting The Featured Image For A Portfolio Item), #7 (Adding The Gallery Shortcode To A Page)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
responsive-portfolio-gallery/responsive-portfolio-gallery.php 92% from 13 tests
The primary PHP file in "Responsive Portfolio Gallery" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected821 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 36 | 53 | 539 |
CSS | 1 | 50 | 17 | 223 |
JavaScript | 2 | 4 | 20 | 59 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
13 PNG files occupy 0.71MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/list-view-32.png | 2.20KB | 1.12KB | ▼ 48.98% |
assets/images/hybrid-grid-view-64.png | 3.26KB | 2.10KB | ▼ 35.61% |
screenshot-6.png | 33.80KB | 18.24KB | ▼ 46.03% |
screenshot-2.png | 108.16KB | 30.50KB | ▼ 71.80% |
assets/images/grid-view-32.png | 1.90KB | 0.89KB | ▼ 53.30% |