Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.09ms] Passed 4 tests
An overview of server-side resources used by DB Signatures
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.93 ▲0.13 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.56 ▼2.74 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.34 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.39 ▼9.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.45 ▼4.07 |
Add New /wp-admin/post-new.php?post_type=db-signatures | 3.43 | 55.81 |
Help /wp-admin/edit.php?post_type=db-signatures&page=db-signatures-help | 3.27 | 40.21 |
All Signatures /wp-admin/edit.php?post_type=db-signatures | 3.35 | 38.92 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DB Signatures
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.27 ▼1.48 | 1.69 ▼0.13 | 43.94 ▼2.45 |
Dashboard /wp-admin | 2,239 ▲54 | 5.83 ▼0.02 | 107.34 ▲0.78 | 69.48 ▲26.62 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.04 ▲0.04 | 37.02 ▼2.81 | 34.83 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6,487 ▲4,945 | 28.58 ▲10.56 | 958.04 ▲322.75 | 57.16 ▲5.00 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.21 ▲0.02 | 95.53 ▼14.82 | 74.52 ▲33.55 |
Add New /wp-admin/post-new.php?post_type=db-signatures | 2,396 | 7.67 | 191.72 | 141.96 |
Help /wp-admin/edit.php?post_type=db-signatures&page=db-signatures-help | 864 | 2.02 | 24.59 | 26.07 |
All Signatures /wp-admin/edit.php?post_type=db-signatures | 1,129 | 1.95 | 31.35 | 29.70 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% 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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/db-signatures/templates/show_signature.php
- > /wp-content/plugins/db-signatures/templates/help_page.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/db-signatures/db-signatures.php:217
- > PHP Notice
Undefined variable: post_types in wp-content/plugins/db-signatures/templates/meta_box_show_on.php on line 1
- > PHP Notice
Undefined variable: signature_selected in wp-content/plugins/db-signatures/templates/meta_box_choose_signature.php on line 4
- > PHP Notice
Undefined variable: signatures in wp-content/plugins/db-signatures/templates/meta_box_choose_signature.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/db-signatures/templates/meta_box_show_on.php on line 1
- > PHP Notice
Undefined variable: signature_selected in wp-content/plugins/db-signatures/templates/meta_box_choose_signature.php on line 3
- > PHP Notice
Undefined variable: signature_contents in wp-content/plugins/db-signatures/templates/show_signature.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/db-signatures/templates/meta_box_choose_signature.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
db-signatures/db-signatures.php Passed 13 tests
This is the main PHP file of "DB Signatures" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Add some HTML content to the bottom of every posts, pages and custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected263 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 126 | 121 | 263 |
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.31 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_post_type.png | 2.96KB | 0.37KB | ▼ 87.64% |