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
Install script ran successfully
Server metrics [RAM: ▼1.77MB] [CPU: ▼51.78ms] Passed 4 tests
Analyzing server-side resources used by Call Now PHT Blog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.24 | 6.64 ▼35.99 |
Dashboard /wp-admin | 2.23 ▼1.07 | 5.83 ▼44.76 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 7.27 ▼33.72 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.65 | 6.55 ▼92.66 |
Media Library /wp-admin/upload.php | 2.23 ▼0.99 | 6.09 ▼28.23 |
Call Now PHT /wp-admin/options-general.php?page=call-now-pht | 2.24 | 6.77 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Call Now PHT Blog: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 13.91 ▼0.49 | 5.95 ▲4.21 | 46.11 ▼0.20 |
Dashboard /wp-admin | 2,225 ▲43 | 5.02 ▲0.14 | 110.25 ▼7.56 | 41.02 ▼8.04 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.29 ▲0.24 | 41.76 ▲5.27 | 39.54 ▲5.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 17.79 ▼0.65 | 652.77 ▲54.42 | 37.75 ▼15.87 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.35 ▲0.19 | 88.48 ▼12.08 | 39.84 ▼2.71 |
Call Now PHT /wp-admin/options-general.php?page=call-now-pht | 1,003 | 2.35 | 42.12 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Easy_Callnow_i18n' does not have a method 'load_plugin_textdomain'
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=call-now-pht
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Easy_Callnow_i18n' does not have a method 'load_plugin_textdomain'
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/call-now-coccoc-pht-blog/admin/partials/easy-callnow-admin-display.php
- > /wp-content/plugins/call-now-coccoc-pht-blog/public/partials/easy-callnow-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in call-now-coccoc-pht-blog/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== call-now-coccoc-pht-blog ===
)
call-now-coccoc-pht-blog/easy-callnow.php 77% from 13 tests
The main PHP file in "Call Now PHT Blog" ver. 2.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 154 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("call-now-coccoc-pht-blog.php" instead of "easy-callnow.php")
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 plugin573 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 565 | 286 |
CSS | 2 | 11 | 0 | 216 |
PO File | 2 | 18 | 36 | 62 |
JavaScript | 2 | 3 | 27 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/phone-ring.png | 0.36KB | 0.37KB | 0.00% |