Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.42MB] [CPU: ▲7.64ms] Passed 4 tests
This is a short check of server-side resources used by Dima Take Action
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.04 ▲1.58 | 50.38 ▲6.52 |
Dashboard /wp-admin | 4.75 ▲1.44 | 58.29 ▲5.15 |
Posts /wp-admin/edit.php | 4.80 ▲1.44 | 58.49 ▲9.31 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 112.16 ▲9.57 |
Media Library /wp-admin/upload.php | 4.63 ▲1.40 | 51.35 ▲14.33 |
Options Object /wp-admin/admin.php?page=DimaTakeAction&tab=9 | 5.23 | 268.18 |
Import / Export /wp-admin/admin.php?page=DimaTakeAction&tab=10 | 5.21 | 57.82 |
Settings /wp-admin/admin.php?page=DimaTakeAction&tab=1 | 5.21 | 58.34 |
Server storage [IO: ▲3.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 435 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
dima_ta_demo-transients |
dima_ta_demo |
Browser metrics Passed 4 tests
Dima Take Action: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.71 ▼0.72 | 5.85 ▲3.37 | 39.42 ▼7.19 |
Dashboard /wp-admin | 2,244 ▲59 | 5.86 ▼0.03 | 114.81 ▲8.99 | 43.21 ▲2.29 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.00 ▼0.04 | 37.11 ▼4.31 | 33.47 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 18.53 ▲0.26 | 616.30 ▼46.67 | 51.18 ▼3.17 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.25 ▲0.08 | 98.09 ▼4.79 | 43.02 ▼3.72 |
Options Object /wp-admin/admin.php?page=DimaTakeAction&tab=9 | 2,733 | 9.16 | 199.48 | 77.78 |
Import / Export /wp-admin/admin.php?page=DimaTakeAction&tab=10 | 2,733 | 9.12 | 189.86 | 117.33 |
Settings /wp-admin/admin.php?page=DimaTakeAction&tab=1 | 2,808 | 9.72 | 212.57 | 137.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- dima_ta_demo
- dima_ta_demo-transients
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dima-take-action/admin/partials/dima-take-action-admin-display.php
- > /wp-content/plugins/dima-take-action/public/partials/dima-take-action-public-display.php
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/inc/extensions/customizer/inc/customizer_control.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dima-take-action/admin/class-dima-take-action-admin.php:123
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/templates/panel/container.tpl.php:12
- > PHP Fatal error
Uncaught Error: Class 'PixelDima_Base' not found in wp-content/plugins/dima-take-action/public/class-dima-take-action-public.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/templates/panel/header_stickybar.tpl.php:14
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/inc/themecheck/checks/embedded.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/inc/welcome/views/extensions.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/inc/extensions/customizer/inc/customizer_panel.php:11
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/dima-take-action/admin/redux-framework/ReduxCore/inc/themecheck/checks/full_package.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
dima-take-action/dima-take-action.php Passed 13 tests
The entry point to "Dima Take Action" version 1.0.5 is a PHP file that has certain tags in its header comment area
80 characters long description:
Easily lets you add a Top/Buttom Banner to display a notification and promotion.
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
No dangerous file extensions were detected39,013 lines of code in 313 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 4,044 | 6,140 | 16,954 |
JavaScript | 87 | 2,612 | 1,973 | 12,106 |
Sass | 54 | 1,184 | 60 | 7,579 |
SVG | 1 | 0 | 0 | 934 |
JSON | 1 | 184 | 0 | 909 |
CSS | 49 | 30 | 45 | 449 |
LESS | 1 | 0 | 0 | 53 |
HTML | 1 | 3 | 0 | 29 |
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 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 30.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 878.00 |
Average method complexity | 6.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 111 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 111 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 638 | |
▷ Static methods | 111 | 17.40% |
▷ Public methods | 485 | 76.02% |
▷ Protected methods | 94 | 14.73% |
▷ Private methods | 59 | 9.25% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 60 | |
▷ Global constants | 2 | 3.33% |
▷ Class constants | 58 | 96.67% |
▷ Public constants | 58 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-framework/ReduxCore/assets/img/3-col-portfolio.png | 1.00KB | 0.15KB | ▼ 85.27% |
admin/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/redux-framework/ReduxCore/assets/img/1c.png | 0.13KB | 0.13KB | ▼ 0.72% |
admin/redux-framework/ReduxCore/assets/img/2cl.png | 2.91KB | 0.24KB | ▼ 91.79% |
admin/redux-framework/ReduxCore/assets/img/3cl.png | 3.08KB | 0.33KB | ▼ 89.13% |