Benchmarks
Plugin footprint 65% 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: ▼1.88MB] [CPU: ▼56.56ms] Passed 4 tests
Server-side resources used by CogWork
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 6.67 ▼43.06 |
Dashboard /wp-admin | 2.14 ▼1.17 | 8.59 ▼52.49 |
Posts /wp-admin/edit.php | 2.14 ▼1.23 | 8.69 ▼41.05 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.76 | 8.99 ▼89.63 |
Media Library /wp-admin/upload.php | 2.14 ▼1.10 | 9.34 ▼23.13 |
CogWork /wp-admin/options-general.php?page=cogwork_settings | 2.14 | 8.88 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for CogWork
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲22 | 14.70 ▲0.47 | 1.58 ▼0.17 | 35.96 ▼7.52 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.00 | 92.07 ▼3.91 | 40.31 ▼1.81 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.06 | 39.68 ▲3.75 | 38.96 ▲1.49 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,674 | 19.23 ▼4.01 | 943.81 ▲327.74 | 38.69 ▼13.17 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▲0.09 | 96.40 ▼1.86 | 40.79 ▼2.79 |
CogWork /wp-admin/options-general.php?page=cogwork_settings | 1,012 | 2.00 | 23.81 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=cogwork_settings
- > User notice in wp-includes/functions.php+5905
Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cogwork/php-scripts/shortcodes.php
- > /wp-content/plugins/cogwork/php-scripts/mediabutton.php
- > /wp-content/plugins/cogwork/cogwork.php
- > /wp-content/plugins/cogwork/php-scripts/settings.php
- > /wp-content/plugins/cogwork/php-scripts/gutenbergblock.php
- > /wp-content/plugins/cogwork/php-scripts/login.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'CW_PHP_CLASSES_DIRcwConnector.php' (include_path='.:/usr/share/php') in wp-content/plugins/cogwork/php-classes/cwShortcode.php on line 2
- > PHP Warning
require_once(CW_PHP_CLASSES_DIRcwConnector.php): failed to open stream: No such file or directory in wp-content/plugins/cogwork/php-classes/cwShortcode.php on line 2
- > PHP Warning
Use of undefined constant CW_PHP_CLASSES_DIR - assumed 'CW_PHP_CLASSES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cogwork/php-classes/cwShortcode.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: minaaktiviteter, events, payment, customers, registration...
cogwork/cogwork.php Passed 13 tests
"CogWork" version 1.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Enables shortcodes that loads and displays content from CogWork (MinaAktiviteter/Dans.se/Idrott.se)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,281 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 4,547 |
PHP | 17 | 473 | 273 | 1,270 |
JavaScript | 4 | 96 | 95 | 355 |
PO File | 1 | 29 | 42 | 109 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.18 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 5.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 21 | 42.86% |
▷ Public methods | 29 | 59.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 40.82% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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