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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.75ms] Passed 4 tests
This is a short check of server-side resources used by Text Scroll Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.48 ▼1.38 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.30 ▼10.94 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.05 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.23 ▼11.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.34 ▼3.09 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_textscrolling |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
textscrolling_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Text Scroll Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 14.46 ▲0.01 | 1.65 ▼0.40 | 37.77 ▼2.87 |
Dashboard /wp-admin | 2,222 ▲37 | 5.90 ▲0.01 | 109.10 ▲7.54 | 38.24 ▼2.84 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.01 ▲0.01 | 39.96 ▼1.68 | 35.97 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.26 ▲0.06 | 681.90 ▲3.02 | 63.36 ▲3.54 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.22 ▼0.01 | 92.47 ▼13.18 | 42.97 ▼2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- textscrolling_db_version
- widget_textscrolling
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/text-scrolling-widget/includes/TextScrollingFrontEnd.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/text-scrolling-widget/includes/templates/text-scrolling-front-end.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/text-scrolling-widget/includes/TextScrollingAdmin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/text-scrolling-widget/includes/templates/text-scrolling-setting.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== text-scrolling-widget ===
)
text-scrolling-widget/TextScrollWidget.php 92% from 13 tests
The main PHP script in "Text Scroll Widget" version 2.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("text-scrolling-widget.php" instead of "TextScrollWidget.php")
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 detected174 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 46 | 20 | 164 |
JavaScript | 1 | 12 | 1 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin