Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php+12
Use of undefined constant BNCF_ROOT - assumed 'BNCF_ROOT' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.86MB] [CPU: ▼55.11ms] Passed 4 tests
Server-side resources used by Rimons Twitter Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.55 ▼37.79 |
Dashboard /wp-admin | 2.16 ▼1.18 | 5.55 ▼60.23 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 6.19 ▼42.10 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.61 ▼80.32 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.89 ▼25.76 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_rtw_twitter_widget |
widget_recent-posts |
rtw_admin_notice |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Rimons Twitter Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.19 ▼1.19 | 1.67 ▼0.15 | 39.29 ▼5.85 |
Dashboard /wp-admin | 2,218 ▲30 | 5.80 ▼0.06 | 101.62 ▼22.53 | 38.51 ▼1.95 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.06 ▲0.09 | 38.05 ▼3.08 | 32.81 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,543 ▲23 | 23.35 ▲0.10 | 622.41 ▼40.49 | 53.59 ▲4.02 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.22 ▼0.06 | 93.64 ▼6.43 | 42.10 ▼6.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php+12
Use of undefined constant BNCF_ROOT - assumed 'BNCF_ROOT' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- rtw_admin_notice
- widget_rtw_twitter_widget
- 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)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant BNCF_ROOT - assumed 'BNCF_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php:17
- > PHP Warning
Use of undefined constant BNCF_ROOT - assumed 'BNCF_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php on line 14
- > PHP Warning
Use of undefined constant BNCF_ROOT - assumed 'BNCF_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/rimons-twitter-widget/rimons-twitter-widget.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rimons-twitter-widget/widget.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== rimons-twitter-widget ===
)
rimons-twitter-widget/rimons-twitter-widget.php 92% from 13 tests
The main file in "Rimons Twitter Widget" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 271 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected505 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 25 | 416 |
CSS | 2 | 10 | 0 | 89 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter-widget-logo.png | 0.87KB | 0.76KB | ▼ 12.40% |