Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.09ms] 75% from 4 tests
An overview of server-side resources used by Wordpress Call me Now
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,026.97ms on /wp-admin/admin.php?page=call_me_now_about)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.69 ▲0.18 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.61 ▲0.06 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.88 ▲2.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.61 ▼2.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.59 ▲5.29 |
Settings /wp-admin/admin.php?page=call_me_now_settings | 3.23 | 2,181.29 |
Information /wp-admin/admin.php?page=call_me_now_about | 3.23 | 2,026.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_call_me_now_widget |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Wordpress Call me Now: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.58 ▼0.80 | 1.82 ▲0.05 | 39.95 ▼11.76 |
Dashboard /wp-admin | 2,237 ▲46 | 5.99 ▲0.09 | 101.39 ▼4.57 | 77.52 ▲38.13 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▲0.01 | 35.36 ▲0.17 | 32.31 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,691 ▲158 | 22.46 ▼0.76 | 769.09 ▲143.57 | 59.32 ▲0.74 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.19 ▼0.12 | 98.44 ▲1.60 | 75.59 ▲34.23 |
Settings /wp-admin/admin.php?page=call_me_now_settings | 843 | 2.02 | 25.47 | 27.81 |
Information /wp-admin/admin.php?page=call_me_now_about | 870 | 2.03 | 23.71 | 28.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_call_me_now_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=call_me_now_about
- > Warning in wp-content/plugins/call-me-now/call-me-now-frame.php+4
file_get_contents(http://crm.tussendoor.nl/view-iframe/1/wordpress-plugin.html?code=1): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
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
Almost there! Just fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: title in wp-content/plugins/call-me-now/views/frontend/call-me-now.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/call-me-now/views/admin/settings.php:3
- > PHP Notice
Undefined variable: class in wp-content/plugins/call-me-now/views/frontend/call-me-now.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/call-me-now/call-me-now.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/call-me-now/views/frontend/call-me-now.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/call-me-now/views/admin/about.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/call-me-now/call-me-now-widget.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/call-me-now/views/admin/widget-settings.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
call-me-now/call-me-now.php Passed 13 tests
The main file in "Wordpress Call me Now" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Zorg voor supersnelle call me now activiteiten op je website via de Call me now widget van Verbonden B.V.
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
There were no executable files found in this plugin352 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 37 | 11 | 217 |
CSS | 1 | 13 | 0 | 73 |
JavaScript | 1 | 1 | 0 | 62 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 |
resources/call-me-now_white.png | 1.14KB | 0.46KB | ▼ 59.55% |