Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.71ms] Passed 4 tests
Server-side resources used by OKR - Objectives Key Results
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.08 ▲4.51 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.42 ▲0.33 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.86 ▼2.36 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.17 ▼18.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.01 ▼2.47 |
All Objectives /wp-admin/edit.php?post_type=objective | 3.32 | 37.90 |
All Key Results /wp-admin/edit.php?post_type=key_result | 3.32 | 33.97 |
Add New /wp-admin/post-new.php?post_type=key_result | 3.48 | 54.72 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=objective | 3.26 | 40.44 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=key_result | 3.28 | 36.15 |
Add New /wp-admin/post-new.php?post_type=objective | 3.42 | 54.76 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
category_children |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OKR - Objectives Key Results
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.81 ▲0.06 | 1.77 ▲0.07 | 42.68 ▼1.20 |
Dashboard /wp-admin | 2,286 ▲83 | 5.90 ▲1.00 | 112.58 ▲7.41 | 41.61 ▼2.23 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.00 ▼0.01 | 36.12 ▼3.46 | 31.81 ▼6.66 |
Add New Post /wp-admin/post-new.php | 1,597 ▲61 | 23.08 ▼0.24 | 668.17 ▲2.39 | 59.83 ▲10.28 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.23 ▼0.06 | 104.87 ▼0.06 | 45.60 ▼1.64 |
All Objectives /wp-admin/edit.php?post_type=objective | 1,215 | 2.14 | 31.79 | 35.50 |
All Key Results /wp-admin/edit.php?post_type=key_result | 1,215 | 1.99 | 54.53 | 31.98 |
Add New /wp-admin/post-new.php?post_type=key_result | 2,736 | 7.71 | 220.53 | 70.02 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=objective | 1,520 | 2.18 | 27.96 | 33.89 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=key_result | 1,517 | 2.18 | 27.26 | 32.67 |
Add New /wp-admin/post-new.php?post_type=objective | 2,621 | 7.77 | 165.79 | 55.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- category_children
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/objectives-key-results-okr/okr.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=key_result
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=key_result 461:29 Uncaught TypeError: $ is not a function
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
4 plugin tags: goals, objectives, okr, tasks
objectives-key-results-okr/okr.php 92% from 13 tests
The main PHP file in "OKR - Objectives Key Results" ver. 1.02 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("objectives-key-results-okr.php" instead of "okr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected382 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 23 | 264 |
CSS | 1 | 26 | 0 | 116 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin