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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.80ms] Passed 4 tests
A check of server-side resources used by Placeholder it
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.24 ▲2.06 |
Dashboard /wp-admin | 3.36 ▲0.01 | 43.85 ▼12.68 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.48 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 78.06 ▼14.21 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.68 ▲2.60 |
Placeholder.it Widget /wp-admin/options-general.php?page=placeholder_it_widget | 3.25 | 28.69 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
placeholder_it_widget_basics |
theysaidso_admin_options |
widget_recent-comments |
widget_placeholder-it-widget |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Placeholder it
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.80 ▲0.45 | 1.68 ▼0.06 | 44.98 ▼2.48 |
Dashboard /wp-admin | 2,220 ▲39 | 5.81 ▲0.12 | 90.72 ▼10.37 | 36.51 ▼6.87 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.33 ▲0.33 | 41.56 ▲7.33 | 34.70 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.49 ▲0.37 | 589.87 ▼56.31 | 33.73 ▼17.20 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.41 ▲0.18 | 102.73 ▲6.40 | 43.26 ▲1.30 |
Placeholder.it Widget /wp-admin/options-general.php?page=placeholder_it_widget | 1,174 | 2.45 | 64.14 | 31.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- placeholder_it_widget_basics
- widget_recent-posts
- widget_recent-comments
- widget_placeholder-it-widget
- theysaidso_admin_options
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/placeholder-it-widget/placeholder-it-widget.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/placeholder-it-widget/widget/widget.placeholder-it-widget.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=placeholder_it_widget
- > Network (severe)
wp-content/plugins/placeholder-it-widget/admin.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: development, placeholder
placeholder-it-widget/placeholder-it-widget.php Passed 13 tests
Analyzing the main PHP file in "Placeholder it" version 0.9
95 characters long description:
Simple widget to add placeholders using placeholder.it webservice during development of a site.
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
Everything looks great! No dangerous files found in this plugin998 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 217 | 280 | 856 |
PO File | 1 | 42 | 42 | 128 |
CSS | 2 | 2 | 2 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 19.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 3 | 5.00% |
▷ Private methods | 4 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin