Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.39ms] Passed 4 tests
This is a short check of server-side resources used by WB Portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.19 ▼3.42 |
Dashboard /wp-admin | 3.37 ▲0.07 | 54.52 ▼0.25 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 54.96 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.97 ▲5.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.14 ▲0.35 |
Categories /wp-admin/edit-tags.php?taxonomy=wbportfolio_category&post_type=wbportfolio | 3.29 | 38.40 |
Help & Upgrade /wp-admin/edit.php?post_type=wbportfolio&page=wbportfolio_menu_help | 3.26 | 33.40 |
All Portfolios /wp-admin/edit.php?post_type=wbportfolio | 3.34 | 37.58 |
Add New Portfolio /wp-admin/post-new.php?post_type=wbportfolio | 3.44 | 53.74 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WB Portfolio: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 13.73 ▼0.64 | 9.47 ▲7.52 | 41.68 ▼0.71 |
Dashboard /wp-admin | 2,243 ▲66 | 4.85 ▼0.04 | 101.03 ▼22.34 | 42.02 ▲3.88 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 1.99 ▼0.04 | 40.26 ▲2.11 | 35.69 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.18 ▼0.17 | 685.46 ▼37.54 | 60.75 ▲0.71 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.24 ▲0.09 | 101.20 ▼14.14 | 45.99 ▼1.77 |
Categories /wp-admin/edit-tags.php?taxonomy=wbportfolio_category&post_type=wbportfolio | 1,302 | 2.14 | 27.81 | 28.41 |
Help & Upgrade /wp-admin/edit.php?post_type=wbportfolio&page=wbportfolio_menu_help | 795 | 2.18 | 23.77 | 26.46 |
All Portfolios /wp-admin/edit.php?post_type=wbportfolio | 1,099 | 2.01 | 31.45 | 28.40 |
Add New Portfolio /wp-admin/post-new.php?post_type=wbportfolio | 2,377 | 7.62 | 173.88 | 69.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wb-portfolio/lib/wb-portfolio-help-upgrade.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-portfolio/lib/wb-metabox.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-portfolio/lib/wb-portfolio-cpt.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wb-portfolio/wb-portfolio.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wb-portfolio/public/wb-view.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% 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 require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wb-portfolio/wb-portfolio.php Passed 13 tests
The primary PHP file in "WB Portfolio" version 1.0 is used by WordPress to initiate all plugin functionality
89 characters long description:
WB Portfolio is a custom post type based Responsive Filterable Portfolio showing plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin332 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 24 | 36 | 190 |
CSS | 2 | 14 | 10 | 120 |
JavaScript | 2 | 3 | 11 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin