Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/collabpress/includes/cp-widgets.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; cp_widget_overview has a deprecated constructor
Server metrics [RAM: ▼1.48MB] [CPU: ▼52.87ms] Passed 4 tests
Server-side resources used by CollabPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.51 ▼0.96 | 8.01 ▼43.93 |
Dashboard /wp-admin | 2.53 ▼0.78 | 11.10 ▼46.94 |
Posts /wp-admin/edit.php | 2.53 ▼0.83 | 9.92 ▼40.15 |
Add New Post /wp-admin/post-new.php | 2.53 ▼3.36 | 11.27 ▼80.44 |
Media Library /wp-admin/upload.php | 2.53 ▼0.70 | 10.05 ▼27.89 |
CollabPress /wp-admin/admin.php?page=collabpress-dashboard | 2.53 | 10.19 |
Settings /wp-admin/admin.php?page=collabpress-settings | 2.53 | 8.77 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 115 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cp_project_users |
New WordPress options |
---|
widget_theysaidso_widget |
cp_version |
widget_recent-posts |
widget_cp_widget_overview |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CollabPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲152 | 13.86 ▼0.74 | 6.68 ▲4.62 | 40.32 ▼3.06 |
Dashboard /wp-admin | 2,248 ▲45 | 5.93 ▲0.10 | 116.22 ▲17.95 | 84.98 ▲46.69 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.11 ▲0.11 | 38.52 ▲4.01 | 34.68 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲3 | 22.98 ▼0.56 | 708.11 ▲103.58 | 64.36 ▲7.60 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.28 ▲0.06 | 101.50 ▲2.17 | 88.10 ▲46.76 |
CollabPress /wp-admin/admin.php?page=collabpress-dashboard | 942 | 2.09 | 40.60 | 47.43 |
Settings /wp-admin/admin.php?page=collabpress-settings | 1,457 | 1.76 | 26.58 | 29.45 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/collabpress/includes/cp-widgets.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; cp_widget_overview has a deprecated constructor
- Zombie tables detected upon uninstall: 1 table
- wp_cp_project_users
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- cp_version
- widget_cp_widget_overview
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=collabpress-settings
- > Deprecated in wp-content/plugins/collabpress/includes/cp-widgets.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; cp_widget_overview has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=collabpress-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in cp_widget_overview is deprecated since version 4.3.0! Use __construct() instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=collabpress-settings
- > Notice in wp-content/plugins/collabpress/includes/menus/settings.php+157
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=collabpress-settings
- > Notice in wp-content/plugins/collabpress/includes/menus/settings-addons.php+13
Undefined variable: plugins
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
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_project_links() in wp-content/plugins/collabpress/includes/templates/collabpress/content-single-project.php:3
- > PHP Warning
require_once(CP_PLUGIN_DIRincludes/template-tags.php): failed to open stream: No such file or directory in wp-content/plugins/collabpress/includes/functions.php on line 678
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/collabpress/includes/cp-widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_project_links() in wp-content/plugins/collabpress/includes/templates/collabpress/content-single-project-users.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_check_permissions() in wp-content/plugins/collabpress/includes/menus/settings.php:3
- > PHP Fatal error
require_once(): Failed opening required 'CP_PLUGIN_DIRincludes/tools/boones-pagination/boones-pagination.php' (include_path='.:/usr/share/php') in wp-content/plugins/collabpress/includes/templates/collabpress/projects-loop.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_overall_links() in wp-content/plugins/collabpress/includes/templates/collabpress/content-activity.php:4
- > PHP Fatal error
Uncaught Error: Class 'BP_Component' not found in wp-content/plugins/collabpress/includes/cp-bp.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function cp_has_projects() in wp-content/plugins/collabpress/includes/templates/collabpress/buddypress/dashboard.php:5
- > PHP Warning
require_once(CP_PLUGIN_DIRincludes/tools/boones-pagination/boones-pagination.php): failed to open stream: No such file or directory in wp-content/plugins/collabpress/includes/templates/collabpress/projects-loop.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (CollabPress Dashboard showing recent activity, users, overview, and more), #2 (Task list view showing active and completed tasks and who is assigned to each), #3 (Single task view with comments), #4 (Calendar view with tasks and due dates), #5 (Shortcode support example), #6 (BuddyPress Group integration)
- Tags: You are using too many tags: 14 tag instead of maximum 10
collabpress/cp-loader.php 92% from 13 tests
The principal PHP file in "CollabPress" v. 1.3.1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("collabpress.php" instead of "cp-loader.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
There were no executable files found in this plugin9,748 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 1,440 | 1,514 | 6,012 |
CSS | 8 | 311 | 221 | 2,026 |
JavaScript | 11 | 457 | 228 | 1,710 |
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.32 |
Average class complexity | 23.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 155 | |
▷ Named functions | 155 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
46 PNG files occupy 0.55MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/tools/fancybox/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |
screenshot-2.png | 55.54KB | 21.75KB | ▼ 60.84% |
includes/tools/fancybox/fancybox-x.png | 0.20KB | 0.31KB | 0.00% |
includes/tools/fancybox/fancy_shadow_nw.png | 0.32KB | 0.47KB | 0.00% |
includes/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |