Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.06ms] Passed 4 tests
This is a short check of server-side resources used by Data Dash
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 46.01 ▲3.91 |
Dashboard /wp-admin | 3.45 ▲0.14 | 57.40 ▲5.34 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 53.50 ▲3.12 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 87.54 ▼18.98 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.23 ▲3.70 |
Update Counter /wp-admin/admin.php?page=dd-update-counter | 3.34 | 34.00 |
Dashboard /wp-admin/admin.php?page=data-dash | 3.34 | 34.69 |
Data Counter /wp-admin/admin.php?page=dd-data-counter | 3.34 | 42.34 |
Create Counter /wp-admin/admin.php?page=dd-create-counter | 3.34 | 34.31 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_dd_counters |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Data Dash
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.66 ▼0.93 | 6.44 ▲4.46 | 42.86 ▼1.48 |
Dashboard /wp-admin | 2,233 ▲45 | 4.78 ▼1.12 | 102.12 ▼4.99 | 42.63 ▼5.60 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.01 | 41.56 ▲2.62 | 35.02 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 22.37 ▼0.95 | 657.38 ▼24.98 | 45.34 ▼8.51 |
Media Library /wp-admin/upload.php | 1,415 ▲36 | 4.14 ▼0.07 | 110.74 ▲11.54 | 47.48 ▲4.70 |
Update Counter /wp-admin/admin.php?page=dd-update-counter | 1,586 | 2.29 | 29.60 | 28.91 |
Dashboard /wp-admin/admin.php?page=data-dash | 838 | 2.20 | 24.82 | 29.59 |
Data Counter /wp-admin/admin.php?page=dd-data-counter | 964 | 2.08 | 31.40 | 35.62 |
Create Counter /wp-admin/admin.php?page=dd-create-counter | 924 | 2.13 | 26.69 | 28.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/data-dash/pages/user-footer.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-create-counter.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/data-dash/includes/dd-shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-update-counter.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function DataDash\\add_action() in wp-content/plugins/data-dash/includes/user-post-requests.php:8
- > PHP Fatal error
Uncaught Error: Class 'DDData' not found in wp-content/plugins/data-dash/pages/admin-data-counter.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/data-dash/includes/dd-listtable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function DataDash\\add_action() in wp-content/plugins/data-dash/includes/post-requests.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/data-dash/pages/admin-dashboard.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: data dash, counter, website counter
data-dash/data-dash.php Passed 13 tests
"Data Dash" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Data dash allows you to create dynamic counters for your website pages.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,817 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 252 | 89 | 1,032 |
JavaScript | 5 | 267 | 56 | 525 |
Sass | 3 | 30 | 0 | 149 |
CSS | 1 | 1 | 0 | 111 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 27 | 50.00% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.85% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin