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.01MB] [CPU: ▼6.10ms] Passed 4 tests
This is a short check of server-side resources used by WP Clickable Background
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.98 ▲3.75 |
Dashboard /wp-admin | 3.33 ▼0.01 | 42.42 ▼19.86 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.33 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.00 ▼6.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.63 ▲3.25 |
WP Clickable Background /wp-admin/options-general.php?page=wp-clickable-background-admin | 3.24 | 31.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Clickable Background
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.33 ▼1.13 | 4.61 ▲2.90 | 44.00 ▲4.48 |
Dashboard /wp-admin | 2,210 ▲24 | 4.88 ▼0.03 | 108.21 ▲0.88 | 39.13 ▼2.95 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.02 | 41.84 ▲4.38 | 42.42 ▲7.22 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 23.40 ▼0.03 | 652.93 ▲53.42 | 64.37 ▲3.37 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.00 | 102.08 ▲5.51 | 40.70 ▼2.26 |
WP Clickable Background /wp-admin/options-general.php?page=wp-clickable-background-admin | 937 | 2.04 | 23.78 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-clickable-background/views/admin-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-clickable-background/includes/settingLink.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-clickable-background/includes/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-clickable-background/wp-clickable-background.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
4 plugin tags: background, javascript, clickable, click
wp-clickable-background/wp-clickable-background.php Passed 13 tests
The primary PHP file in "WP Clickable Background" version 1.0.1 is used by WordPress to initiate all plugin functionality
75 characters long description:
Wordpress Plugin in order to make the background of your website clickable.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin335 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 40 | 19 | 285 |
JavaScript | 2 | 5 | 0 | 32 |
Markdown | 1 | 9 | 0 | 18 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG files were detected