Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.46ms] Passed 4 tests
Server-side resources used by Hotline Phone Ring
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.02 ▲3.41 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.73 ▲0.47 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.21 ▼9.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.86 ▼10.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.34 ▼1.57 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Hotline Phone Ring
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 14.41 ▲0.04 | 1.93 ▼0.17 | 47.84 ▲1.80 |
Dashboard /wp-admin | 2,230 ▲53 | 5.86 ▲0.17 | 92.02 ▲1.77 | 39.57 ▼7.39 |
Posts /wp-admin/edit.php | 2,140 ▲43 | 2.31 ▲0.26 | 41.41 ▲4.38 | 35.22 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,553 ▼3 | 17.59 ▼0.74 | 672.90 ▲28.92 | 36.16 ▼10.76 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.44 ▲0.24 | 98.54 ▼7.88 | 43.05 ▼1.60 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hotline-phone-ring/includes/backend.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2 in hotline-phone-ring/assets to your readme.txt
hotline-phone-ring/hotline-phone-ring.php Passed 13 tests
The principal PHP file in "Hotline Phone Ring" v. 2.0.6 is loaded by WordPress automatically on each request
28 characters long description:
Fixed Hotline on the screen.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin751 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 22 | 1 | 349 |
PHP | 4 | 55 | 137 | 327 |
PO File | 1 | 20 | 20 | 72 |
JavaScript | 1 | 2 | 1 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-1.png | 0.93KB | 0.37KB | ▼ 59.98% |
assets/images/icon-2.png | 0.62KB | 0.63KB | 0.00% |