Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼156.80ms] Passed 4 tests
This is a short check of server-side resources used by Pingdar Site Monitoring
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 37.26 ▲12.11 |
Dashboard /wp-admin | 3.13 ▲0.08 | 49.13 ▲14.83 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 46.76 ▼2.68 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 87.21 ▼637.70 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 33.83 ▲1.09 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pingdar_user_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Pingdar Site Monitoring
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,888 ▲292 | 16.49 ▲0.85 | 9.69 ▲0.91 | 52.86 ▲0.80 |
Dashboard /wp-admin | 3,052 ▲121 | 6.54 ▲0.33 | 138.99 ▼10.58 | 112.01 ▼4.53 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.89 ▲0.20 | 65.46 ▼9.14 | 90.88 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,706 ▲23 | 18.54 ▼0.13 | 359.00 ▼19.41 | 135.02 ▲18.09 |
Media Library /wp-admin/upload.php | 1,828 ▲21 | 5.35 ▲0.34 | 138.51 ▼27.15 | 111.22 ▼10.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- pingdar_user_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pingdar-site-monitoring/admin/partials/country-code.php
- > /wp-content/plugins/pingdar-site-monitoring/public/partials/pingdar-public-display.php
- > /wp-content/plugins/pingdar-site-monitoring/admin/partials/time-zone.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingdar-site-monitoring/includes/pingdar-admin-hooks.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pingdar-site-monitoring/admin/partials/pingdar-update-form.php:1
- > PHP Fatal error
Uncaught Error: Class 'PingdarConnection' not found in wp-content/plugins/pingdar-site-monitoring/admin/partials/pingdar-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pingdar-site-monitoring/admin/partials/pingdar-register-form.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
pingdar-site-monitoring/pingdar.php 85% from 13 tests
"Pingdar Site Monitoring" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pingdar-site-monitoring.php" instead of "pingdar.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,549 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 197 | 696 | 1,585 |
Sass | 9 | 132 | 11 | 570 |
CSS | 2 | 63 | 47 | 312 |
JavaScript | 3 | 19 | 40 | 82 |
PHP code Passed 2 tests
This is a very shot 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.20 |
Average class complexity | 1.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bin/pingdarLogoW.png | 3.87KB | 2.92KB | ▼ 24.55% |
bin/pingdarPremium.png | 6.68KB | 3.66KB | ▼ 45.30% |
bin/pingdarLogo.png | 5.09KB | 3.29KB | ▼ 35.29% |