Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/ddns-4-admin/classes/abstract/Plugin/v1/class-lib.php+60
implode(): Passing glue string after array is deprecated. Swap the parameters
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.21ms] Passed 4 tests
An overview of server-side resources used by DDNS 4 Admin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 30.88 ▲9.14 |
Dashboard /wp-admin | 3.06 ▲0.00 | 50.00 ▲5.00 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 47.08 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 89.25 ▼579.68 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.74 ▼1.47 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by DDNS 4 Admin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.92 ▲0.23 | 8.18 ▼1.64 | 52.51 ▼0.47 |
Dashboard /wp-admin | 2,970 ▲36 | 6.06 ▲0.14 | 142.85 ▲0.43 | 110.41 ▼17.36 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 68.73 ▼0.19 | 91.55 ▼9.32 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.29 ▲2.80 | 295.76 ▼116.92 | 111.93 ▼3.29 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▲0.00 | 167.70 ▲6.66 | 122.58 ▼0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ddns-4-admin/docs/copyright-notice.php
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (**DDNS-4-Admin Plugin** - Settings) image required
ddns-4-admin/index.php 92% from 13 tests
The main PHP script in "DDNS 4 Admin" version 2.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ddns-4-admin.php" instead of "index.php")
Code Analysis 97% from 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 plugin6,013 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 869 | 1,728 | 3,891 |
JavaScript | 5 | 138 | 69 | 1,541 |
CSS | 5 | 102 | 92 | 581 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 5 | 55.56% |
▷ Concrete classes | 4 | 44.44% |
▷ Final classes | 4 | 100.00% |
Methods | 197 | |
▷ Static methods | 78 | 39.59% |
▷ Public methods | 141 | 71.57% |
▷ Protected methods | 38 | 19.29% |
▷ Private methods | 18 | 9.14% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/abstract/Plugin/v1/assets/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/ddns-4-admin-logo.png | 8.75KB | 7.44KB | ▼ 15.01% |
classes/abstract/Plugin/v1/assets/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |