Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/simple-ticker/lib/class-simpleticker.php+55
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.43ms] Passed 4 tests
A check of server-side resources used by Simple Ticker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 36.48 ▼16.27 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.34 ▼7.18 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.09 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.34 ▲6.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.69 ▼1.50 |
Simple Ticker /wp-admin/options-general.php?page=SimpleTicker | 3.23 | 37.57 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
simple_ticker |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_simpletickerwidgetitem |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Ticker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.24 ▼0.03 | 1.86 ▲0.23 | 36.71 ▼5.90 |
Dashboard /wp-admin | 2,207 ▲26 | 5.64 ▲0.06 | 95.75 ▼24.59 | 41.95 ▼1.62 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.03 ▲0.02 | 38.25 ▼0.27 | 36.43 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,675 | 18.88 ▼4.31 | 844.97 ▲143.72 | 60.70 ▲2.28 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.19 ▲0.01 | 97.09 ▼13.97 | 42.42 ▼4.39 |
Simple Ticker /wp-admin/options-general.php?page=SimpleTicker | 1,890 | 3.23 | 82.65 | 25.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_simpletickerwidgetitem
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-ticker/lib/class-simpletickeradmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-ticker/lib/class-simpletickeradmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-ticker/lib/class-simpleticker.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-ticker/lib/class-simpletickerwidgetitem.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce, ticker, widget, shortcode, block
simple-ticker/simpleticker.php 92% from 13 tests
Analyzing the main PHP file in "Simple Ticker" version 3.07
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-ticker.php" instead of "simpleticker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,157 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 114 | 251 | 937 |
JavaScript | 3 | 11 | 17 | 175 |
CSS | 1 | 0 | 0 | 25 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 5.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin