Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲6.07ms] Passed 4 tests
A check of server-side resources used by B Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.92 | 54.04 ▲9.02 |
Dashboard /wp-admin | 4.11 ▲0.81 | 70.47 ▲15.63 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 76.94 ▲20.30 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.84 | 104.10 ▼7.54 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 47.12 ▲7.15 |
Shortcodes /wp-admin/edit.php?post_type=shortcode-generator | 4.22 | 54.44 |
All Portfolios /wp-admin/edit.php?post_type=bportfolio | 4.22 | 55.12 |
Category /wp-admin/edit-tags.php?taxonomy=bportfolio_cat&post_type=bportfolio | 4.02 | 51.39 |
Settings /wp-admin/edit.php?post_type=bportfolio&page=portfolio-settings | 4.15 | 47.84 |
Add New /wp-admin/post-new.php?post_type=bportfolio | 4.25 | 62.18 |
Help /wp-admin/edit.php?post_type=bportfolio&page=bppf-support | 4.14 | 46.74 |
Server storage [IO: ▲4.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 189 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
_bppfsettings_ |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for B Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲231 | 13.67 ▼0.72 | 14.17 ▲12.04 | 40.66 ▼3.15 |
Dashboard /wp-admin | 2,256 ▲76 | 5.60 ▼0.05 | 111.09 ▲22.10 | 44.11 ▲1.30 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.05 ▲0.03 | 39.65 ▼0.69 | 36.05 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.58 ▲0.51 | 694.48 ▲13.74 | 59.03 ▲1.98 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.17 ▼0.05 | 94.91 ▼12.40 | 43.49 ▼6.06 |
Shortcodes /wp-admin/edit.php?post_type=shortcode-generator | 1,334 | 3.53 | 53.92 | 30.19 |
All Portfolios /wp-admin/edit.php?post_type=bportfolio | 1,346 | 3.54 | 55.96 | 28.15 |
Category /wp-admin/edit-tags.php?taxonomy=bportfolio_cat&post_type=bportfolio | 1,335 | 2.13 | 30.12 | 31.35 |
Settings /wp-admin/edit.php?post_type=bportfolio&page=portfolio-settings | 1,633 | 4.53 | 79.45 | 34.40 |
Add New /wp-admin/post-new.php?post_type=bportfolio | 1,967 | 4.55 | 81.50 | 50.67 |
Help /wp-admin/edit.php?post_type=bportfolio&page=bppf-support | 1,700 | 10.53 | 298.87 | 115.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- _bppfsettings_
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bportfolio
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/bportfolio/inc/bportfolio-shortcode.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bportfolio/single-bportfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bportfolio/admin/ads/submenu.php:9
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/bportfolio/inc/bportfolio-settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: showcase, block, portfolio, widget, projects
bportfolio/bportfolio.php Passed 13 tests
Analyzing the main PHP file in "B Portfolio" version 1.0.1
41 characters long description:
Easily display interactive showcase item.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected44,532 lines of code in 145 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 3,153 | 542 | 15,032 |
PHP | 79 | 2,410 | 984 | 7,692 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
JavaScript | 10 | 1,733 | 1,269 | 5,965 |
Sass | 15 | 952 | 3 | 4,803 |
SVG | 7 | 0 | 0 | 4,550 |
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.63 |
Average class complexity | 24.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 233 | |
▷ Static methods | 40 | 17.17% |
▷ Public methods | 233 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |