Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.38ms] Passed 4 tests
A check of server-side resources used by Wp Site portfolio
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.24 ▲4.83 |
Dashboard /wp-admin | 3.48 ▲0.13 | 51.68 ▼7.66 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.57 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.14 ▼11.98 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 36.42 ▲1.70 |
Categories /wp-admin/edit-tags.php?taxonomy=sitecategory&post_type=sites | 3.41 | 37.72 |
Add New /wp-admin/post-new.php?post_type=sites | 3.46 | 47.88 |
Site Portfolio Settings /wp-admin/edit.php?post_type=sites&page=site_portfolio_settings | 3.39 | 36.11 |
Sites Portfolio /wp-admin/edit.php?post_type=sites | 3.46 | 38.67 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Wp Site portfolio: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,064 ▲307 | 15.26 ▲0.48 | 6.40 ▲4.35 | 42.88 ▼6.88 |
Dashboard /wp-admin | 2,381 ▲193 | 6.47 ▲0.57 | 138.01 ▲30.36 | 40.32 ▼6.11 |
Posts /wp-admin/edit.php | 2,287 ▲198 | 3.30 ▲1.29 | 49.88 ▲12.77 | 32.66 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,557 ▲38 | 23.30 ▲0.12 | 631.46 ▼43.43 | 37.54 ▼16.03 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.16 ▼0.06 | 83.71 ▼21.82 | 42.14 ▼3.83 |
Categories /wp-admin/edit-tags.php?taxonomy=sitecategory&post_type=sites | 1,462 | 3.12 | 41.17 | 27.46 |
Add New /wp-admin/post-new.php?post_type=sites | 1,781 | 3.68 | 65.89 | 31.86 |
Site Portfolio Settings /wp-admin/edit.php?post_type=sites&page=site_portfolio_settings | 1,109 | 3.03 | 41.01 | 66.24 |
Sites Portfolio /wp-admin/edit.php?post_type=sites | 1,263 | 3.32 | 47.19 | 25.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 6× 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/wp-site-portfolio/admin/function-admin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-portfolio/includes/wpspf-cpt-fields.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-site-portfolio/admin/wpspf-settings-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-portfolio/includes/wpspf-cpt.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-site-portfolio/includes/function-wpspf.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-site-portfolio/includes/templates/wpspf-shortcode.php:114
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Requires php: Invalid plugin version format
wp-site-portfolio/wp-site-portfolio.php Passed 13 tests
This is the main PHP file of "Wp Site portfolio" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Show you work to potential customers
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
Everything looks great! No dangerous files found in this plugin1,226 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 157 | 119 | 611 |
CSS | 2 | 50 | 26 | 266 |
PO File | 1 | 87 | 88 | 200 |
JavaScript | 2 | 21 | 2 | 149 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.93MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot-3.png | 394.83KB | 132.34KB | ▼ 66.48% |
assets/Screenshot-2.png | 312.26KB | 103.83KB | ▼ 66.75% |
assets/Screenshot-4.png | 80.10KB | 28.24KB | ▼ 64.75% |
assets/Screenshot-1.png | 119.87KB | 36.08KB | ▼ 69.90% |
includes/img/logoW.png | 46.73KB | 18.11KB | ▼ 61.25% |