Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.42ms] Passed 4 tests
An overview of server-side resources used by Explore Wp Database
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.01 ▼0.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.49 ▼4.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.75 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.28 ▲5.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.50 ▼3.76 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Explore Wp Database: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲61 | 13.53 ▼1.02 | 1.82 ▼0.16 | 44.50 ▼5.48 |
Dashboard /wp-admin | 2,221 ▲36 | 5.78 ▼0.11 | 99.17 ▼16.51 | 41.40 ▼5.51 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.17 ▲0.18 | 40.35 ▼5.14 | 35.69 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,682 ▲168 | 22.64 ▲4.90 | 642.16 ▼57.07 | 48.76 ▼6.90 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.21 ▼0.02 | 98.93 ▼6.55 | 45.74 ▼0.52 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/explore-wp-database/views/all-tables.php
- > /wp-content/plugins/explore-wp-database/views/single-table.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: pagination in wp-content/plugins/explore-wp-database/views/single-table.php on line 27
- > PHP Notice
Undefined variable: tableName in wp-content/plugins/explore-wp-database/views/single-table.php on line 1
- > PHP Notice
Undefined variable: items in wp-content/plugins/explore-wp-database/views/all-tables.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/explore-wp-database/explore_wp_database.php:16
- > PHP Notice
Undefined variable: tableDescription in wp-content/plugins/explore-wp-database/views/single-table.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
explore-wp-database/explore_wp_database.php 92% from 13 tests
The main PHP file in "Explore Wp Database" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("explore-wp-database.php" instead of "explore_wp_database.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected312 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 34 | 38 | 311 |
CSS | 1 | 0 | 5 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 6 | 30.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.18MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screen Shot 2018-07-23 at 20.35.13.png | 189.02KB | 51.30KB | ▼ 72.86% |