Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.30ms] Passed 4 tests
An overview of server-side resources used by Org. Departments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.68 ▼4.73 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.33 ▼3.43 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.59 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 93.62 ▼0.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.09 ▲2.52 |
Departments /wp-admin/edit-tags.php?taxonomy=departments | 3.31 | 33.48 |
Org. Departments /wp-admin/options-general.php?page=org-departments/includes/admin/options.php | 3.29 | 29.54 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Org. Departments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.15 ▼1.14 | 1.62 ▼0.28 | 39.14 ▼6.39 |
Dashboard /wp-admin | 2,214 ▲29 | 4.84 ▼0.97 | 110.88 ▼5.12 | 38.30 ▼9.16 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.05 | 39.74 ▲2.70 | 36.84 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.13 ▲4.81 | 623.27 ▼36.64 | 50.62 ▼3.87 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.22 ▲0.03 | 96.95 ▲1.65 | 40.94 ▼1.86 |
Departments /wp-admin/edit-tags.php?taxonomy=departments | 1,261 | 2.13 | 26.08 | 28.98 |
Org. Departments /wp-admin/options-general.php?page=org-departments/includes/admin/options.php | 828 | 2.04 | 23.96 | 26.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_send_json() in wp-content/plugins/org-departments/includes/ajax_departments.php:205
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/org-departments/includes/shortcodes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function OrgDepartments_Get_Options() in wp-content/plugins/org-departments/includes/admin/options.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/org-departments/org-departments.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/org-departments/includes/admin/admin.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: "wpgear.xyz/org-departments"
org-departments/org-departments.php Passed 13 tests
The principal PHP file in "Org. Departments" v. 4.8 is loaded by WordPress automatically on each request
99 characters long description:
Hierarchical Structure of Departments. For each User, you can set a binding to several Departments.
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 detected939 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 172 | 121 | 646 |
JavaScript | 1 | 49 | 19 | 161 |
CSS | 2 | 2 | 10 | 132 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin