Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.62MB] [CPU: ▼164.91ms] Passed 4 tests
Server-side resources used by Simple Org Chart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 26.42 ▼0.58 |
Dashboard /wp-admin | 3.11 ▲0.05 | 40.78 ▼6.08 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 39.98 ▲5.58 |
Add New Post /wp-admin/post-new.php | 2.87 ▼2.57 | 16.64 ▼650.63 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 22.75 ▼2.35 |
Org Chart /wp-admin/options-general.php?page=org_chart | 3.00 | 22.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Simple Org Chart: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,945 ▲344 | 17.97 ▲2.37 | 4.95 ▼0.15 | 73.07 ▼0.10 |
Dashboard /wp-admin | 3,191 ▲292 | 8.44 ▲2.27 | 141.95 ▲11.58 | 162.05 ▼12.13 |
Posts /wp-admin/edit.php | 3,035 ▲295 | 5.05 ▲1.80 | 83.87 ▲17.44 | 137.09 ▼5.31 |
Add New Post /wp-admin/post-new.php | 2,345 ▼1,398 | 16.27 ▼2.77 | 387.19 ▼55.19 | 160.93 ▼7.30 |
Media Library /wp-admin/upload.php | 1,820 ▲65 | 5.92 ▲0.40 | 113.04 ▼29.03 | 183.88 ▼2.47 |
Org Chart /wp-admin/options-general.php?page=org_chart | 1,496 | 5.39 | 88.12 | 142.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=org_chart
- > Notice in wp-content/plugins/simple-org-chart/index.php+147
Undefined variable: top_level_id
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-org-chart/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Please a description for screenshot #5 in simple-org-chart/assets to your readme.txt
simple-org-chart/index.php 92% from 13 tests
The main PHP script in "Simple Org Chart" version 2.3.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-org-chart.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,046 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 175 | 33 | 471 |
JavaScript | 3 | 92 | 64 | 356 |
CSS | 2 | 40 | 9 | 219 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin