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.25MB] [CPU: ▲2.02ms] Passed 4 tests
A check of server-side resources used by Portfolio Mgmt.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 48.11 ▲9.75 |
Dashboard /wp-admin | 3.56 ▲0.22 | 52.63 ▼6.25 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.92 ▲5.49 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 96.67 ▼0.91 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 45.08 ▲10.76 |
All Portfolio Projects /wp-admin/edit.php?post_type=wap8-portfolio | 3.51 | 44.56 |
Documentation /wp-admin/edit.php?post_type=wap8-portfolio&page=wap8-portfolio-documentation | 3.45 | 39.92 |
Services /wp-admin/edit-tags.php?taxonomy=wap8-services&post_type=wap8-portfolio | 3.48 | 40.54 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=wap8-portfolio-tags&post_type=wap8-portfolio | 3.47 | 41.43 |
Add New /wp-admin/post-new.php?post_type=wap8-portfolio | 3.62 | 57.97 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Portfolio Mgmt.
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 13.31 ▼1.06 | 5.71 ▲3.88 | 45.10 ▲1.73 |
Dashboard /wp-admin | 2,247 ▲59 | 5.84 ▲0.98 | 100.12 ▼8.58 | 40.92 ▼1.69 |
Posts /wp-admin/edit.php | 2,130 ▲44 | 2.04 ▼0.00 | 35.83 ▼3.04 | 35.49 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 17.58 ▼5.49 | 605.92 ▼75.13 | 58.86 ▲0.77 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.23 ▲0.03 | 95.94 ▼3.39 | 42.47 ▼2.52 |
All Portfolio Projects /wp-admin/edit.php?post_type=wap8-portfolio | 1,168 | 1.93 | 31.38 | 32.37 |
Documentation /wp-admin/edit.php?post_type=wap8-portfolio&page=wap8-portfolio-documentation | 863 | 2.04 | 25.83 | 29.94 |
Services /wp-admin/edit-tags.php?taxonomy=wap8-services&post_type=wap8-portfolio | 1,306 | 2.13 | 25.63 | 29.90 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=wap8-portfolio-tags&post_type=wap8-portfolio | 1,275 | 2.25 | 27.48 | 28.02 |
Add New /wp-admin/post-new.php?post_type=wap8-portfolio | 2,793 | 7.83 | 173.76 | 70.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-meta-boxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/portfolio-mgmt/portfolio-mgmt.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-registrations.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-custom-columns.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-updated-messages.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-doc.php:262
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-mgmt/includes/portfolio-mgmt-help-tabs.php:133
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: portfolio, custom post type, post type, widget
portfolio-mgmt/portfolio-mgmt.php Passed 13 tests
"Portfolio Mgmt." version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Add the power of portfolio content management to your WordPress website with Portfolio Mgmt.
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
Success! There were no dangerous files found in this plugin1,436 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 455 | 586 | 1,018 |
PO File | 1 | 133 | 155 | 390 |
CSS | 1 | 5 | 6 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 51 | |
▷ Named functions | 51 | 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
PNG files should be compressed to save space and 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 |
images/star.png | 0.43KB | 0.71KB | 0.00% |