Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.50MB] [CPU: ▲16.90ms] Passed 4 tests
A check of server-side resources used by ADFO – Custom data in admin dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.59 ▲2.13 | 63.69 ▲24.05 |
Dashboard /wp-admin | 6.01 ▲2.70 | 63.73 ▲14.38 |
Posts /wp-admin/edit.php | 6.01 ▲2.65 | 69.03 ▲17.82 |
Add New Post /wp-admin/post-new.php | 8.42 ▲2.54 | 111.40 ▲11.33 |
Media Library /wp-admin/upload.php | 6.01 ▲2.78 | 64.67 ▲27.52 |
Database /wp-admin/admin.php?page=database_presentation | 6.01 | 52.50 |
Documentation /wp-admin/admin.php?page=admin_form_docs | 6.92 | 67.02 |
Admin Form /wp-admin/admin.php?page=admin_form | 6.93 | 56.04 |
Server storage [IO: ▲2.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ADFO – Custom data in admin dashboard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.76 ▲0.41 | 2.14 ▲0.30 | 36.44 ▼8.52 |
Dashboard /wp-admin | 2,226 ▲46 | 5.62 ▼0.06 | 88.32 ▲0.56 | 39.29 ▼2.00 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.08 | 39.24 ▲3.51 | 36.74 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 21.05 ▼1.84 | 663.75 ▲15.44 | 61.49 ▲11.42 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.18 ▼0.08 | 97.55 ▼4.09 | 49.41 ▲4.15 |
Database /wp-admin/admin.php?page=database_presentation | 898 | 1.98 | 22.83 | 30.06 |
Documentation /wp-admin/admin.php?page=admin_form_docs | 1,223 | 2.28 | 33.63 | 33.19 |
Admin Form /wp-admin/admin.php?page=admin_form | 1,269 | 5.80 | 98.15 | 30.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=admin_form_docs
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 take a closer look at the following
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: key in wp-content/plugins/admin-form/admin/partials/af-content-list-form-classic-container.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/admin-form/includes/documentation/pages_it_IT/pinacode.php:2
- > PHP Notice
Undefined variable: key in wp-content/plugins/admin-form/admin/partials/af-content-list-form-post-container.php on line 16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/admin-form/admin/partials/af-content-list-form-metadata-container.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_form\\add_action() in wp-content/plugins/admin-form/includes/af-loader.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_form\\add_action() in wp-content/plugins/admin-form/includes/af-list-loader.php:11
- > PHP Notice
Undefined variable: table in wp-content/plugins/admin-form/admin/partials/af-content-list-form-metadata-container.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_form\\add_shortcode() in wp-content/plugins/admin-form/includes/af-shortcode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_form\\_e() in wp-content/plugins/admin-form/admin/partials/af-content-list-form-post-container.php:22
- > PHP Fatal error
Uncaught Error: Class 'admin_form\\ADFO_data_structures' not found in wp-content/plugins/admin-form/data-structures/af-form-setting.php:13
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in admin-form/assets to your readme.txt
admin-form/admin-form.php 77% from 13 tests
The principal PHP file in "ADFO – Custom data in admin dashboard" v. 1.8.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.3" instead of "7.2")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected29,309 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 2,377 | 4,357 | 21,830 |
JavaScript | 10 | 587 | 611 | 5,121 |
CSS | 2 | 413 | 27 | 2,358 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 95.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 451.00 |
Average method complexity | 9.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 404 | |
▷ Static methods | 179 | 44.31% |
▷ Public methods | 345 | 85.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 59 | 14.60% |
Functions | 142 | |
▷ Named functions | 128 | 90.14% |
▷ Anonymous functions | 14 | 9.86% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 1.11MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/documentation/assets/tutorial_02_02.png | 56.78KB | 21.66KB | ▼ 61.85% |
includes/documentation/assets/tutorial_02_01.png | 46.22KB | 19.36KB | ▼ 58.12% |
includes/documentation/assets/tutorial_03_01_new.png | 61.08KB | 23.45KB | ▼ 61.61% |
includes/documentation/assets/tutorial_03_01.png | 48.61KB | 18.59KB | ▼ 61.75% |
includes/documentation/assets/tutorial_01_04.png | 11.94KB | 4.96KB | ▼ 58.51% |