Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▲0.67ms] Passed 4 tests
An overview of server-side resources used by Portfolio Gallery - Photo Gallery and Image Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 44.49 ▲2.01 |
Dashboard /wp-admin | 3.71 ▲0.40 | 50.35 ▲1.80 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.83 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 97.48 ▼1.03 |
Media Library /wp-admin/upload.php | 3.55 ▲0.31 | 39.45 ▲4.51 |
Portfolio Settings /wp-admin/edit.php?post_type=rcpig&page=rcpig-settings | 3.54 | 38.56 |
All Portfolios /wp-admin/edit.php?post_type=rcpig | 3.68 | 43.07 |
New Portfolio /wp-admin/post-new.php?post_type=rcpig | 3.64 | 47.40 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=rcpig-category&post_type=rcpig | 3.57 | 43.09 |
Server storage [IO: ▲2.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
rcpig_style |
can_compress_scripts |
rcpig_advanced |
rcpig_general |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Portfolio Gallery - Photo Gallery and Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,086 ▲329 | 15.47 ▲1.09 | 7.26 ▲5.28 | 41.85 ▼9.64 |
Dashboard /wp-admin | 2,399 ▲211 | 6.66 ▲1.78 | 126.78 ▲12.65 | 39.97 ▲2.19 |
Posts /wp-admin/edit.php | 2,308 ▲219 | 3.62 ▲1.62 | 56.39 ▲15.64 | 35.46 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,559 ▲14 | 23.07 ▲4.73 | 601.11 ▼16.88 | 34.89 ▼18.13 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.32 ▲0.11 | 82.65 ▼14.53 | 40.95 ▼3.21 |
Portfolio Settings /wp-admin/edit.php?post_type=rcpig&page=rcpig-settings | 1,557 | 3.65 | 56.33 | 65.29 |
All Portfolios /wp-admin/edit.php?post_type=rcpig | 1,305 | 3.48 | 49.61 | 27.82 |
New Portfolio /wp-admin/post-new.php?post_type=rcpig | 2,475 | 7.92 | 188.03 | 71.43 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=rcpig-category&post_type=rcpig | 1,484 | 3.43 | 43.55 | 30.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- rcpig_advanced
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- rcpig_style
- can_compress_scripts
- theysaidso_admin_options
- rcpig_general
Smoke tests 75% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rcpig
- > Notice in wp-content/plugins/responsive-portfolio-image-gallery/custom-post/rcpig_metabox.php+90
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Responsive Portfolio Image Gallery Settings.), #2 (Responsive Portfolio Image Gallery Thumbnail View.), #3 (Responsive Portfolio Image Gallery Expanded Preview.), #4 (Expanded preview with Light Color Scheme.)
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
responsive-portfolio-image-gallery/responsive-gallery.php 85% from 13 tests
This is the main PHP file of "Portfolio Gallery - Photo Gallery and Image Gallery" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-portfolio-image-gallery.php" instead of "responsive-gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,862 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 175 | 335 | 1,149 |
CSS | 3 | 0 | 15 | 431 |
PO File | 1 | 102 | 103 | 237 |
JavaScript | 3 | 5 | 9 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.41% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.89MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/nav-icon.png | 0.14KB | 0.11KB | ▼ 23.40% |
screenshot-4.png | 686.77KB | 188.13KB | ▼ 72.61% |
screenshot-2.png | 560.02KB | 190.59KB | ▼ 65.97% |
screenshot-1.png | 15.54KB | 14.33KB | ▼ 7.79% |
screenshot-3.png | 676.33KB | 229.40KB | ▼ 66.08% |