Benchmarks
Plugin footprint 65% 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: ▼1.58MB] [CPU: ▼42.85ms] Passed 4 tests
Server-side resources used by DJD Site Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.41 ▼1.05 | 10.35 ▼27.54 |
Dashboard /wp-admin | 2.43 ▼0.88 | 17.40 ▼30.13 |
Posts /wp-admin/edit.php | 2.43 ▼0.93 | 12.22 ▼39.71 |
Add New Post /wp-admin/post-new.php | 2.43 ▼3.46 | 13.89 ▼74.02 |
Media Library /wp-admin/upload.php | 2.43 ▼0.80 | 11.97 ▼21.58 |
DJD Site Post /wp-admin/options-general.php?page=djd-site-post-settings | 2.43 | 13.02 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_djd_site_post_widget |
djd_site_post_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DJD Site Post
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,636 ▼110 | 13.23 ▼1.14 | 1.72 ▲0.10 | 42.47 ▲2.40 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.02 | 109.01 ▲6.04 | 40.58 ▼4.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 39.37 ▼2.85 | 34.97 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.14 ▼0.04 | 652.30 ▼26.32 | 59.15 ▲5.28 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.03 | 104.12 ▲3.53 | 46.12 ▲0.06 |
DJD Site Post /wp-admin/options-general.php?page=djd-site-post-settings | 1,257 | 2.03 | 27.23 | 32.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/djd-site-post/inc/djdsp-widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; DJD_Site_Post_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_djd_site_post_widget
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=djd-site-post-settings
- > Deprecated in wp-content/plugins/djd-site-post/inc/djdsp-widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; DJD_Site_Post_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=djd-site-post-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in DJD_Site_Post_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=djd-site-post-settings
- > Notice in wp-content/plugins/djd-site-post/views/admin.php+126
Undefined index: djd-edit-page
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=djd-site-post-settings
- > Notice in wp-content/plugins/djd-site-post/views/admin.php+291
Undefined index: djd-post-format-default
- > GET request to /wp-admin/options-general.php?page=djd-site-post-settings
- > Notice in wp-content/plugins/djd-site-post/views/admin.php+368
Undefined index: djd-quiz
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/djd-site-post/djd-site-post.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_section() in wp-content/plugins/djd-site-post/views/admin.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/djd-site-post/views/display.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/djd-site-post/inc/djdsp-widget.php:9
- > PHP Notice
Undefined variable: djd_options in wp-content/plugins/djd-site-post/views/display.php on line 14
- > PHP Notice
Undefined variable: called_from_widget in wp-content/plugins/djd-site-post/views/display.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/djd-site-post/views/display.php:75
- > PHP Notice
Undefined index: form_ok in wp-content/plugins/djd-site-post/views/display.php on line 68
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== djd-site-post ===
)
djd-site-post/djd-site-post.php Passed 13 tests
Analyzing the main PHP file in "DJD Site Post" version 0.9.3
46 characters long description:
Write, publish and edit posts on the front end
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,611 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 239 | 969 |
CSS | 2 | 64 | 5 | 334 |
PO File | 1 | 125 | 153 | 246 |
JavaScript | 4 | 11 | 2 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/accepted_48.png | 5.13KB | 1.89KB | ▼ 63.13% |
img/cancel_48.png | 5.19KB | 1.92KB | ▼ 63.09% |
views/images/djd-grey34x34.png | 1.17KB | 1.44KB | 0.00% |