Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.95ms] Passed 4 tests
Analyzing server-side resources used by TeleLog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.24 ▼4.48 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.14 ▼2.92 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.95 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 99.79 ▼0.99 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.13 ▲3.55 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 17 new options
New WordPress options |
---|
telelog_on_post_publish |
widget_recent-posts |
telelog_api_key |
telelog_on_login_fail |
can_compress_scripts |
telelog_on_register_user |
telelog_on_post_update |
telelog_on_woocommerce_order_new |
telelog_on_plugin_deactivate |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for TeleLog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.26 ▼0.53 | 1.74 ▼0.05 | 38.62 ▼6.54 |
Dashboard /wp-admin | 2,218 ▲41 | 5.66 ▲0.09 | 93.19 ▼4.51 | 41.43 ▼4.35 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.01 ▲0.03 | 39.14 ▼0.87 | 36.06 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.12 ▼0.40 | 671.82 ▲46.76 | 68.81 ▲14.35 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.14 ▼0.07 | 101.29 ▼11.63 | 44.36 ▲0.62 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/telelog/telelog.php
- > /wp-content/plugins/telelog/uninstall.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/SettingsLinks.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/WooCommerce/WooCommerceOrderNew.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/PluginDeactivate.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/telelog/templates/index.php:1
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/LoginFail.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/ThemeSwitch.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/RegisterUser.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Pages/Callbacks/AdminCallbacks.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/Translation.php:11
- > PHP Fatal error
Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/Enqueue.php:11
- > 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 uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
telelog/telelog.php Passed 13 tests
"TeleLog" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Keep track of everything happening on your WordPress in Telegram.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,490 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 300 | 402 | 1,310 |
PO File | 1 | 40 | 43 | 99 |
JSON | 2 | 0 | 0 | 34 |
Markdown | 1 | 16 | 0 | 33 |
JavaScript | 1 | 0 | 0 | 10 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 103 | |
▷ Static methods | 23 | 22.33% |
▷ Public methods | 94 | 91.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.74% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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