Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.81ms] Passed 4 tests
A check of server-side resources used by Dable
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.09 | 46.90 ▲3.33 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.31 ▼3.53 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 53.91 ▲4.45 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.91 ▼17.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.36 ▲2.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
dable-og-settings |
db_upgraded |
widget_dable_widget |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Dable
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.18 ▼1.10 | 1.59 ▼0.16 | 37.19 ▼7.97 |
Dashboard /wp-admin | 2,265 ▲77 | 5.87 ▲0.96 | 102.32 ▲2.97 | 37.30 ▼7.62 |
Posts /wp-admin/edit.php | 2,149 ▲57 | 2.07 ▲0.05 | 41.68 ▲1.15 | 35.79 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.17 ▼0.04 | 654.40 ▼10.93 | 52.54 ▼0.69 |
Media Library /wp-admin/upload.php | 1,450 ▲59 | 4.30 ▲0.15 | 94.67 ▼3.76 | 44.42 ▲0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_dable_widget
- widget_recent-comments
- dable-og-settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dable/dable-for-wordpress.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dable/class.dable-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dable/lib/functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/dable/views/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Screenshots: Screenshot #1 (Dable WordPress Plugin) image required
dable/dable-for-wordpress.php 92% from 13 tests
The main PHP file in "Dable" ver. 3.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dable.php" instead of "dable-for-wordpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,569 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 101 | 64 | 740 |
PO File | 5 | 235 | 261 | 653 |
CSS | 1 | 12 | 0 | 147 |
JavaScript | 1 | 6 | 1 | 29 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 2 | 10.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin