Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/tf-notifications/tf-notifications.php+46
Uncaught Error: Call to undefined method TFWPN_TF_Notifications_Activator::activate() in wp-content/plugins/tf-notifications/tf-notifications.php:46
Stack trace:
#0 wp-includes/class-wp-hook.php(310): activate_tfwpn_tf_notifications()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.90ms] Passed 4 tests
A check of server-side resources used by TF Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.26 ▲1.51 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.51 ▼4.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.80 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.77 ▼1.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.97 ▲4.05 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TF Notifications
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.28 | 1.68 ▼0.66 | 38.93 ▼13.06 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.80 | 107.86 ▲7.26 | 40.83 ▼5.52 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 39.57 ▼3.39 | 34.16 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.39 ▼5.47 | 666.47 ▲7.27 | 54.72 ▲1.56 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.05 | 92.49 ▼12.04 | 40.82 ▼3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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)
Even though no errors were found, this is by no means 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/tf-notifications/public/partials/tfwpn-tf-notifications-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/tf-notifications/admin/partials/tfwpn-tf-notifications-admin-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: notifications
tf-notifications/tf-notifications.php 92% from 13 tests
The principal PHP file in "TF Notifications" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected4,055 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 478 | 887 | 3,302 |
PHP | 13 | 180 | 645 | 556 |
CSS | 5 | 43 | 48 | 197 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.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
30 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |
public/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
public/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
public/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
public/css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |