Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼172.98ms] Passed 4 tests
Analyzing server-side resources used by DKO WP Tools
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 41.49 ▲20.63 |
Dashboard /wp-admin | 3.09 ▲0.03 | 48.31 ▼3.31 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 42.66 ▼6.32 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 98.24 ▼684.40 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.97 ▲2.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DKO WP Tools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,744 ▲172 | 16.25 ▲0.64 | 12.34 ▲2.53 | 54.71 ▼0.15 |
Dashboard /wp-admin | 2,986 ▲55 | 6.02 ▼0.04 | 153.22 ▼4.97 | 119.36 ▼15.26 |
Posts /wp-admin/edit.php | 2,755 ▲19 | 2.85 ▲0.13 | 76.89 ▲4.70 | 96.76 ▼5.14 |
Add New Post /wp-admin/post-new.php | 1,629 ▲48 | 21.47 ▲0.81 | 288.28 ▼110.02 | 118.21 ▼0.36 |
Media Library /wp-admin/upload.php | 1,826 ▲19 | 5.05 ▲0.02 | 168.11 ▲10.07 | 129.89 ▲2.46 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/dkowptools/dkowptools.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== dkowptools ===
)
dkowptools/dkowptools.php Passed 13 tests
The main PHP script in "DKO WP Tools" version 0.1.0 is automatically included on every request by WordPress
36 characters long description:
Show browser resolution in admin bar
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
Everything looks great! No dangerous files found in this plugin164 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 101 | 163 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 2 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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