Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.47ms] Passed 4 tests
Server-side resources used by CB Portfolio Work For Elementor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.81 ▼1.27 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.60 ▼8.37 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.58 ▲0.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.18 ▼12.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.82 ▲1.69 |
Work Category /wp-admin/edit-tags.php?taxonomy=work_category&post_type=our-works | 3.29 | 33.77 |
Add Work /wp-admin/post-new.php?post_type=our-works | 3.41 | 50.73 |
Our Works /wp-admin/edit.php?post_type=our-works | 3.34 | 36.58 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CB Portfolio Work For Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 13.23 ▼1.12 | 1.71 ▼0.10 | 46.99 ▲7.62 |
Dashboard /wp-admin | 2,255 ▲70 | 4.87 ▼0.99 | 111.12 ▲7.27 | 43.53 ▲4.59 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.03 ▲0.04 | 34.75 ▼2.35 | 34.93 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,572 ▲58 | 23.24 ▲5.68 | 652.78 ▼13.10 | 64.79 ▲9.38 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.31 ▲0.14 | 108.34 ▲9.23 | 47.82 ▲2.98 |
Work Category /wp-admin/edit-tags.php?taxonomy=work_category&post_type=our-works | 1,311 | 2.31 | 26.85 | 31.71 |
Add Work /wp-admin/post-new.php?post_type=our-works | 2,411 | 7.80 | 167.64 | 66.30 |
Our Works /wp-admin/edit.php?post_type=our-works | 1,109 | 1.96 | 35.60 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/cb-portfolio-work/elementor-addon/includes/widgets/cb-pwork.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: elementor widget, portfolio, portfolios widget, work works
cb-portfolio-work/tools.php 85% from 13 tests
The main PHP script in "CB Portfolio Work For Elementor" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("cb-portfolio-work.php" instead of "tools.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin466 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 136 | 135 | 377 |
CSS | 1 | 6 | 6 | 89 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 2 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There are no PNG files in this plugin