Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.43ms] 75% from 4 tests
Server-side resources used by Collabim Plugin
It is recommended to improve the following
- CPU: Total CPU usage must kept under 500.00ms (currently 552.61ms on /wp-admin/admin.php?page=collabim_sett)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.16 ▲0.81 |
Dashboard /wp-admin | 3.44 ▲0.09 | 48.00 ▼10.00 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.54 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 93.89 ▼13.47 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.64 ▲5.04 |
Přehled /wp-admin/admin.php?page=collabim_plugin | 3.33 | 30.71 |
Nastavení /wp-admin/admin.php?page=collabim_sett | 3.33 | 552.61 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
check_first_select |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
check_first_api |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Collabim Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.17 ▼1.44 | 1.67 ▼0.12 | 43.63 ▼0.94 |
Dashboard /wp-admin | 2,236 ▲48 | 5.83 ▲0.96 | 98.39 ▼16.78 | 79.68 ▲35.82 |
Posts /wp-admin/edit.php | 2,128 ▲42 | 2.00 ▼0.00 | 39.54 ▲1.27 | 34.96 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,693 ▲174 | 22.47 ▼0.59 | 632.31 ▼69.82 | 59.76 ▲6.53 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▲0.03 | 101.78 ▲5.56 | 70.59 ▲26.77 |
Přehled /wp-admin/admin.php?page=collabim_plugin | 805 | 2.01 | 22.80 | 27.32 |
Nastavení /wp-admin/admin.php?page=collabim_sett | 831 | 2.02 | 24.03 | 29.65 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=collabim_sett
- > Warning in wp-content/plugins/collabim/inc/Api/Callbacks/AdminCallbacks.php+50
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/collabim/Collabim-Plugin.php
- > /wp-content/plugins/collabim/templates/admin_before.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Base\\BaseController' not found in wp-content/plugins/collabim/inc/Base/Enqueue.php:11
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Base\\BaseController' not found in wp-content/plugins/collabim/inc/Api/ProjectSelect.php:12
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Base\\BaseController' not found in wp-content/plugins/collabim/inc/Api/Callbacks/AdminCallbacks.php:15
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Base\\BaseController' not found in wp-content/plugins/collabim/inc/Pages/Admin.php:15
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Base\\BaseController' not found in wp-content/plugins/collabim/inc/Base/SettingsLinks.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/collabim/templates/settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'CollabimPluginInc\\Api\\Callbacks\\AdminCallbacks' not found in wp-content/plugins/collabim/templates/admin_after.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: seo, collabim
collabim/Collabim-Plugin.php 92% from 13 tests
Analyzing the main PHP file in "Collabim Plugin" version 1.0.2
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("collabim.php" instead of "Collabim-Plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,308 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 288 | 277 | 871 |
XML | 6 | 0 | 0 | 403 |
JSON | 2 | 0 | 0 | 18 |
CSS | 1 | 4 | 0 | 16 |
PHP code Passed 2 tests
Analyzing 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.31 |
Average class complexity | 6.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 62 | |
▷ Static methods | 8 | 12.90% |
▷ Public methods | 60 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.23% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/screenshot-1.PNG | 104.76KB | 47.38KB | ▼ 54.78% |
assets/imgs/collabim-logo.png | 10.85KB | 4.54KB | ▼ 58.20% |
assets/imgs/collabim-logo_small.png | 0.72KB | 0.74KB | 0.00% |