Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.64ms] Passed 4 tests
Analyzing server-side resources used by WCF FOMO Web Push Notifications Plugin For WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 558.40 ▲521.47 |
Dashboard /wp-admin | 3.38 ▲0.03 | 41.74 ▼17.07 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 42.69 ▼4.51 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 74.62 ▼17.93 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 35.46 ▼3.03 |
Campaigns /wp-admin/admin.php?page=campaigns | 3.27 | 30.03 |
WCF FOMO /wp-admin/admin.php?page=wcfcode-fomo | 3.29 | 31.81 |
Server storage [IO: ▲7.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
wcf_api_key |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wcf_userid |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WCF FOMO Web Push Notifications Plugin For WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲126 | 13.20 ▼1.36 | 5.38 ▲3.72 | 37.59 ▼2.25 |
Dashboard /wp-admin | 2,299 ▲121 | 5.74 ▲0.12 | 83.65 ▼15.06 | 30.76 ▼12.66 |
Posts /wp-admin/edit.php | 2,204 ▲104 | 2.19 ▲0.19 | 35.82 ▲0.78 | 28.67 ▼5.59 |
Add New Post /wp-admin/post-new.php | 1,706 ▲180 | 22.79 ▲0.02 | 660.90 ▼7.10 | 49.89 ▼1.83 |
Media Library /wp-admin/upload.php | 1,576 ▲173 | 4.36 ▲0.13 | 102.24 ▼2.70 | 40.00 ▼10.68 |
Campaigns /wp-admin/admin.php?page=campaigns | 888 | 1.94 | 24.83 | 19.64 |
WCF FOMO /wp-admin/admin.php?page=wcfcode-fomo | 970 | 1.91 | 24.69 | 25.60 |
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 8 options in the database
- wcf_userid
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- wcf_api_key
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcfcode-fomo/function.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wcfcode-fomo/wcf-fomo.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/wcfcode-fomo/switch_account.php:3
- > PHP Fatal error
Uncaught Error: Class 'wcf_fomo_functions' not found in wp-content/plugins/wcfcode-fomo/wcfindex.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wcfcode-fomo/wcf_render_account_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcfcode-fomo/function.php:116
- > PHP Fatal error
Uncaught Error: Class 'wcf_fomo_functions' not found in wp-content/plugins/wcfcode-fomo/wcfindex.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcfcode-fomo/wcfcode_admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("For Wcf Push Notifications")
wcfcode-fomo/wcf-fomo.php 77% from 13 tests
Analyzing the main PHP file in "WCF FOMO Web Push Notifications Plugin For WordPress" version 1.0.1
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 253 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wcfcode-fomo.php" instead of "wcf-fomo.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected47,329 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 8,134 | 142 | 35,119 |
JavaScript | 7 | 3,505 | 1,614 | 11,762 |
PHP | 8 | 46 | 13 | 447 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/fonts/wcf_fomo_icon.png | 27.60KB | 8.33KB | ▼ 69.81% |