Benchmarks
Plugin footprint 83% 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.06MB] [CPU: ▼9.28ms] Passed 4 tests
This is a short check of server-side resources used by GBS Portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.87 ▼2.10 |
Dashboard /wp-admin | 3.37 ▲0.03 | 43.89 ▼11.09 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 43.39 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.06 ▼18.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.27 ▲2.80 |
Portfolio Setting /wp-admin/edit.php?post_type=gbs_portfolio&page=gbs_portfolio_setting | 3.26 | 30.07 |
GBS Portfolio /wp-admin/edit.php?post_type=gbs_portfolio | 3.34 | 35.48 |
Add Portfolio Item /wp-admin/post-new.php?post_type=gbs_portfolio | 3.42 | 49.73 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=gbs_portfolio_categories&post_type=gbs_portfolio | 3.29 | 34.86 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by GBS Portfolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.62 ▼0.75 | 8.90 ▲7.11 | 40.51 ▲2.35 |
Dashboard /wp-admin | 2,246 ▲54 | 4.87 ▼1.02 | 95.26 ▼32.16 | 37.17 ▼8.95 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.05 ▲0.05 | 35.67 ▼0.41 | 31.18 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 23.16 ▲0.04 | 678.81 ▲3.18 | 69.66 ▲20.28 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.17 ▼0.05 | 95.30 ▼25.60 | 40.88 ▼6.20 |
Portfolio Setting /wp-admin/edit.php?post_type=gbs_portfolio&page=gbs_portfolio_setting | 866 | 2.06 | 24.79 | 27.91 |
GBS Portfolio /wp-admin/edit.php?post_type=gbs_portfolio | 1,112 | 1.93 | 29.83 | 30.94 |
Add Portfolio Item /wp-admin/post-new.php?post_type=gbs_portfolio | 2,392 | 7.70 | 170.79 | 65.23 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=gbs_portfolio_categories&post_type=gbs_portfolio | 1,302 | 2.14 | 26.32 | 27.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
gbs-portfolio/gbs-portfolio.php 92% from 13 tests
Analyzing the main PHP file in "GBS Portfolio" version 1.4
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 207 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
There were no executable files found in this plugin453 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 13 | 224 |
CSS | 1 | 3 | 2 | 200 |
JavaScript | 2 | 5 | 3 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zoom.png | 0.78KB | 0.87KB | 0.00% |