Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼147.39ms] Passed 4 tests
This is a short check of server-side resources used by Corporate Portfolio powered by ASSIST
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.69 ▲12.69 |
Dashboard /wp-admin | 3.13 ▲0.07 | 41.81 ▼10.59 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 53.36 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 107.27 ▼570.89 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 33.13 ▼9.38 |
Add New /wp-admin/post-new.php?post_type=capwp_portfolio | 3.18 | 57.09 |
Category /wp-admin/edit-tags.php?taxonomy=capwp_register_custom_category&post_type=capwp_portfolio | 3.07 | 33.03 |
All Items /wp-admin/edit.php?post_type=capwp_portfolio | 3.11 | 40.09 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Corporate Portfolio powered by ASSIST
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲299 | 16.53 ▲0.83 | 18.92 ▲5.52 | 74.72 ▲25.42 |
Dashboard /wp-admin | 3,007 ▲76 | 5.86 ▼0.34 | 148.64 ▼23.93 | 105.30 ▼8.23 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▲0.01 | 69.37 ▲2.14 | 96.73 ▲7.81 |
Add New Post /wp-admin/post-new.php | 1,641 ▼42 | 21.38 ▲2.63 | 325.46 ▼95.40 | 114.78 ▼2.47 |
Media Library /wp-admin/upload.php | 1,850 ▲43 | 5.04 ▼0.00 | 168.77 ▲6.53 | 120.71 ▼1.86 |
Add New /wp-admin/post-new.php?post_type=capwp_portfolio | 3,020 | 8.93 | 229.53 | 146.66 |
Category /wp-admin/edit-tags.php?taxonomy=capwp_register_custom_category&post_type=capwp_portfolio | 1,779 | 2.51 | 63.58 | 82.81 |
All Items /wp-admin/edit.php?post_type=capwp_portfolio | 1,448 | 2.63 | 65.98 | 74.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corporate-testimonials-powered-by-assist/register_custom_portfolio.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/corporate-testimonials-powered-by-assist/register_shortcode_info.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/corporate-testimonials-powered-by-assist/portfolio.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots do not have images: #1 (Portfolio Menu), #2 (Display Portfolio Using Shortcodes), #3 (See The Action In Front-End)
corporate-testimonials-powered-by-assist/portfolio.php 92% from 13 tests
The main PHP file in "Corporate Portfolio powered by ASSIST" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("corporate-testimonials-powered-by-assist.php" instead of "portfolio.php")
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
Everything looks great! No dangerous files found in this plugin3,067 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 553 | 279 | 1,562 |
CSS | 4 | 177 | 48 | 1,313 |
PHP | 3 | 40 | 8 | 192 |
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.17 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin