Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼263.12ms] Passed 4 tests
Analyzing server-side resources used by Plugins Stats Dashboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 34.14 ▲12.99 |
Dashboard /wp-admin | 3.16 ▲0.10 | 45.72 ▲3.92 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 44.79 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 92.15 ▼1,051.61 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 32.93 ▼2.65 |
Plugins Stats Dashboard /wp-admin/options-general.php?page=de_plugins_stats_dashboard | 3.07 | 31.06 |
Server storage [IO: ▲0.08MB] [DB: ▲0.11MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options |
---|
de_plugins_stats_dashboard_author |
de_plugins_stats_dashboard_update_frequency |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Plugins Stats Dashboard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲217 | 21.01 ▲5.46 | 6.86 ▼4.99 | 47.41 ▼1.69 |
Dashboard /wp-admin | 3,111 ▲258 | 10.02 ▲4.15 | 225.84 ▲91.94 | 130.78 ▲27.38 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.02 | 64.99 ▲1.02 | 93.19 ▼2.68 |
Add New Post /wp-admin/post-new.php | 3,673 ▲2,017 | 15.02 ▼3.49 | 399.67 ▲40.64 | 103.43 ▼3.31 |
Media Library /wp-admin/upload.php | 1,777 ▲8 | 4.99 ▼0.01 | 146.32 ▼10.29 | 110.00 ▼5.51 |
Plugins Stats Dashboard /wp-admin/options-general.php?page=de_plugins_stats_dashboard | 1,188 | 7.53 | 132.86 | 76.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/plugins-stats-dashboard/admin/partials/plugins-stats-dashboard-widget.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/plugins-stats-dashboard/admin/partials/plugins-stats-dashboard-settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: stats, dashboard, plugin, plugins
plugins-stats-dashboard/plugins-stats-dashboard.php Passed 13 tests
"Plugins Stats Dashboard" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Dashboard widget to display plugin stats from WordPress.org for a specific author.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected486 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 129 | 498 | 375 |
PO File | 1 | 34 | 38 | 106 |
JavaScript | 2 | 0 | 1 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 24 | 72.73% |
▷ Protected methods | 4 | 12.12% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected