Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by Depict
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.14 | 35.72 ▼6.88 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.23 ▼2.38 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.86 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 93.94 ▼9.46 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.64 ▲8.37 |
Depict /wp-admin/options-general.php?page=depict | 3.33 | 31.67 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_depict_widget |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Depict
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.23 ▼1.15 | 1.72 ▼0.59 | 42.45 ▼3.21 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▲0.02 | 107.91 ▲3.05 | 40.48 ▲0.42 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.00 | 39.19 ▲2.04 | 35.30 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 23.41 ▲5.90 | 673.58 ▲15.50 | 57.03 ▲7.79 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.16 ▼0.04 | 99.62 ▼2.82 | 45.28 ▼0.97 |
Depict /wp-admin/options-general.php?page=depict | 976 | 2.18 | 27.60 | 56.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/depict/uninstall.php+24
Undefined variable: depict_wpdb
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_depict_widget
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/depict/inc/Depict_Widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: users, author profile, author link, profile, author
depict/depict.php Passed 13 tests
This is the main PHP file of "Depict" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Adds new fields to User Profile which display on a custom widget or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected855 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 90 | 103 | 669 |
CSS | 1 | 4 | 0 | 186 |
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.12 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
7 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img-fa-instagram.png | 1.32KB | 0.72KB | ▼ 45.61% |
assets/img-fa-twitter.png | 1.12KB | 0.90KB | ▼ 19.61% |
assets/img-fa-linkedin.png | 0.91KB | 0.91KB | 0.00% |
assets/img-fa-google-plus.png | 1.22KB | 1.02KB | ▼ 16.85% |
assets/img-fa-pinterest.png | 1.97KB | 1.50KB | ▼ 23.90% |