Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.44MB] [CPU: ▼185.53ms] Passed 4 tests
This is a short check of server-side resources used by WP Projects Portfolio with Client Testimonials
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼0.53 | 5.82 ▼16.25 |
Dashboard /wp-admin | 2.21 ▼0.85 | 7.45 ▼40.78 |
Posts /wp-admin/edit.php | 2.21 ▼0.90 | 6.00 ▼40.18 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.22 | 6.04 ▼632.68 |
Media Library /wp-admin/upload.php | 2.21 ▼0.79 | 6.16 ▼28.49 |
Projects /wp-admin/edit.php?post_type=wpprojects_portfolio | 2.21 | 6.99 |
Add Project /wp-admin/post-new.php?post_type=wpprojects_portfolio | 2.21 | 6.77 |
Project Tags /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio | 2.21 | 6.25 |
Options /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio | 2.21 | 5.99 |
Project Categories /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio | 2.21 | 5.76 |
Server storage [IO: ▲0.91MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wpprojects_portfolio_type_children |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Projects Portfolio with Client Testimonials
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,899 ▲303 | 16.43 ▲0.78 | 13.54 ▲3.25 | 51.00 ▲0.49 |
Dashboard /wp-admin | 3,047 ▲110 | 6.22 ▲0.10 | 147.93 ▼4.55 | 115.97 ▲5.72 |
Posts /wp-admin/edit.php | 2,821 ▲82 | 2.74 ▲0.03 | 79.89 ▲7.59 | 88.51 ▼3.53 |
Add New Post /wp-admin/post-new.php | 1,739 ▲124 | 18.23 ▼2.65 | 383.68 ▲83.36 | 106.64 ▼2.09 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▲0.01 | 152.04 ▼4.70 | 120.69 ▲2.08 |
Projects /wp-admin/edit.php?post_type=wpprojects_portfolio | 1,581 | 2.67 | 66.54 | 93.41 |
Add Project /wp-admin/post-new.php?post_type=wpprojects_portfolio | 3,329 | 9.50 | 242.79 | 153.54 |
Project Tags /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio | 1,790 | 2.42 | 65.68 | 86.34 |
Options /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio | 1,151 | 2.41 | 61.29 | 76.79 |
Project Categories /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio | 1,866 | 2.42 | 69.78 | 99.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 1 option in the database
- wpprojects_portfolio_type_children
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
- > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
Array and string offset access syntax with curly braces is deprecated
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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-projects-portfolio/single-wp-projects-portfolio.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/wp-projects-portfolio/loop-wppcr-portfolio.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php:114
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=wpprojects_portfolio
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=wpprojects_portfolio:271:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio:359:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio:190:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio:367:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
wp-projects-portfolio/wpp-crportfolio.php 85% from 13 tests
The main file in "WP Projects Portfolio with Client Testimonials" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-projects-portfolio.php" instead of "wpp-crportfolio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,168 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 531 | 178 | 1,492 |
CSS | 5 | 51 | 22 | 495 |
JavaScript | 5 | 69 | 25 | 181 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 60 | |
▷ Named functions | 60 | 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
8 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/switch.png | 2.66KB | 2.01KB | ▼ 24.54% |
images/switch_container_on.png | 1.84KB | 0.36KB | ▼ 80.24% |
images/verify-button.png | 37.64KB | 0.99KB | ▼ 97.38% |
images/submit-client-rec.png | 33.52KB | 1.48KB | ▼ 95.57% |
images/tick-wpp-icon.png | 30.58KB | 1.56KB | ▼ 94.90% |