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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.10ms] Passed 4 tests
Server-side resources used by widget-2x2forum
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.15 ▼3.64 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.49 ▲6.46 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.63 ▼2.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.26 ▼9.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.19 ▼0.16 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_2x2forum_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for widget-2x2forum
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.27 ▲0.04 | 1.80 ▲0.00 | 44.00 ▼1.55 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.06 | 95.89 ▲3.39 | 42.40 ▼10.66 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.16 ▲0.18 | 35.92 ▼0.03 | 29.80 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.51 ▼4.94 | 623.33 ▲4.26 | 68.09 ▲14.76 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.09 | 94.60 ▼1.62 | 41.24 ▼1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_2x2forum_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/widget-2x2forum/bootstrap.php
- > /wp-content/plugins/widget-2x2forum/views/threads.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: async in wp-content/plugins/widget-2x2forum/views/threads.php on line 4
- > PHP Warning
Use of undefined constant WP_FORUM_2x2_REQUIRED_WP_VERSION - assumed 'WP_FORUM_2x2_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-2x2forum/views/requirements-error.php on line 11
- > PHP Warning
Use of undefined constant WP_FORUM_2x2_REQUIRED_PHP_VERSION - assumed 'WP_FORUM_2x2_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-2x2forum/views/requirements-error.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/widget-2x2forum/views/requirements-error.php:12
- > PHP Warning
Use of undefined constant WP_FORUM_2x2_NAME - assumed 'WP_FORUM_2x2_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-2x2forum/views/requirements-error.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-2x2forum/classes/wp_2x2forum-instance.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2 in widget-2x2forum/assets to your readme.txt
widget-2x2forum/bootstrap.php 92% from 13 tests
The entry point to "widget-2x2forum" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-2x2forum.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected267 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 23 | 182 |
JavaScript | 1 | 7 | 14 | 48 |
CSS | 1 | 5 | 0 | 27 |
SVG | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin