Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.67ms] Passed 4 tests
Analyzing server-side resources used by Confection WordPress Cable
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.38 ▼2.06 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.19 ▲0.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.33 ▲6.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 101.04 ▲6.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.42 ▲5.66 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
confection_ajax_name |
confection_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Confection WordPress Cable
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.25 ▼1.19 | 5.54 ▲3.55 | 43.11 ▼4.17 |
Dashboard /wp-admin | 2,232 ▲47 | 5.85 ▲0.76 | 106.54 ▲4.54 | 78.49 ▲32.26 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.00 ▼0.02 | 38.96 ▲2.11 | 35.30 ▲2.68 |
Add New Post /wp-admin/post-new.php | 1,688 ▲155 | 22.22 ▼1.14 | 692.54 ▲63.87 | 51.77 ▲5.04 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.23 ▲0.05 | 93.32 ▼7.20 | 73.71 ▲30.61 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- confection_ajax_name
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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)
Good news, no errors were detected
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
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/confection/bridge-original.php on line 38
- > PHP Notice
Undefined index: value in wp-content/plugins/confection/bridge.php on line 38
- > PHP Notice
Undefined index: value in wp-content/plugins/confection/8MQNW7gxjFq3o7Gvis6y.php on line 38
- > PHP Notice
Undefined index: value in wp-content/plugins/confection/xUznPeZWAo16BRC7qk88.php on line 38
- > PHP Notice
Undefined index: uuid in wp-content/plugins/confection/8MQNW7gxjFq3o7Gvis6y.php on line 38
- > PHP Notice
Undefined index: uuid in wp-content/plugins/confection/bridge-original.php on line 38
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/confection/8MQNW7gxjFq3o7Gvis6y.php on line 10
- > PHP Notice
Undefined index: name in wp-content/plugins/confection/xUznPeZWAo16BRC7qk88.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/confection/inc/community.php:5
- > PHP Notice
Undefined index: uuid in wp-content/plugins/confection/bridge.php on line 38
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: data, privacy, cookie
confection/confection-wp-plugin.php 85% from 13 tests
"Confection WordPress Cable" version 0.4.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("confection.php" instead of "confection-wp-plugin.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)
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
Success! There were no dangerous files found in this plugin987 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 269 | 62 | 814 |
PO File | 1 | 70 | 76 | 148 |
Markdown | 1 | 16 | 0 | 23 |
JavaScript | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 9.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 11 | 55.00% |
▷ Anonymous functions | 9 | 45.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected