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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.07ms] Passed 4 tests
Analyzing server-side resources used by HCT Community Database Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.70 ▼7.88 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.34 ▲0.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.68 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.75 ▲6.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.27 ▲0.77 |
Add New Member /wp-admin/admin.php?page=hctdd_add_dd | 3.34 | 33.04 |
Charts /wp-admin/admin.php?page=hctdd_charts_dd | 3.24 | 33.35 |
Community Database /wp-admin/admin.php?page=hctdd_menu | 3.25 | 31.82 |
Import CSV Data /wp-admin/admin.php?page=hctdd_import_dd | 3.24 | 30.81 |
Export CSV Data /wp-admin/admin.php?page=hctdd_export_dd | 3.23 | 32.45 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_community_database |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
hctdd_db_version |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
HCT Community Database Management: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.74 ▼0.61 | 1.71 ▼0.27 | 39.82 ▼1.31 |
Dashboard /wp-admin | 2,248 ▲60 | 5.16 ▲0.25 | 97.68 ▼8.19 | 41.83 ▼3.59 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.32 ▲0.28 | 39.47 ▲1.60 | 37.09 ▲4.27 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.71 ▲6.19 | 665.09 ▼28.54 | 61.06 ▼7.40 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.32 ▲0.10 | 94.63 ▼18.86 | 41.06 ▼9.81 |
Add New Member /wp-admin/admin.php?page=hctdd_add_dd | 1,096 | 1.90 | 25.56 | 24.71 |
Charts /wp-admin/admin.php?page=hctdd_charts_dd | 908 | 4.26 | 64.29 | 41.56 |
Community Database /wp-admin/admin.php?page=hctdd_menu | 1,002 | 1.92 | 25.06 | 29.28 |
Import CSV Data /wp-admin/admin.php?page=hctdd_import_dd | 825 | 1.88 | 24.61 | 26.46 |
Export CSV Data /wp-admin/admin.php?page=hctdd_export_dd | 879 | 2.05 | 25.39 | 23.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hct-community-database-management/hct_community_database.php
- > /wp-content/plugins/hct-community-database-management/hct_dd_add.php
- > /wp-content/plugins/hct-community-database-management/hct_dd_export.php
- > /wp-content/plugins/hct-community-database-management/hct_dd_list.php
- > /wp-content/plugins/hct-community-database-management/hct_dd_charts.php
- > /wp-content/plugins/hct-community-database-management/hct_dd_import.php
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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== hct-community-database-management ===
)
hct-community-database-management/hct_community_database.php 77% from 13 tests
This is the main PHP file of "HCT Community Database Management" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hct-community-database-management.php" instead of "hct_community_database.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin1,087 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 127 | 25 | 705 |
JavaScript | 2 | 0 | 4 | 378 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected