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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.47ms] Passed 4 tests
A check of server-side resources used by news ticker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.44 ▲1.82 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.04 ▼2.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.68 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.33 ▼21.62 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.97 ▲4.01 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for news ticker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 13.66 ▼0.75 | 7.23 ▲5.49 | 45.36 ▼1.07 |
Dashboard /wp-admin | 2,194 ▲9 | 5.83 ▼0.07 | 98.27 ▼1.31 | 41.18 ▼2.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 32.74 ▼8.05 | 34.70 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.09 ▲0.04 | 662.29 ▼14.05 | 53.27 ▼0.92 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.07 | 92.78 ▼9.90 | 45.66 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-news-ticker/main-function.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/my-news-ticker/main-function.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Add an image for screenshot #1 (How to use shortcode in editor.)
my-news-ticker/main-function.php 85% from 13 tests
Analyzing the main PHP file in "news ticker" version 1.1
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("my-news-ticker.php" instead of "main-function.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin603 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 30 | 67 | 330 |
CSS | 2 | 2 | 3 | 222 |
PHP | 1 | 31 | 15 | 51 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.28KB | 0.45KB | ▼ 64.40% |
images/dl-arr.png | 0.46KB | 0.42KB | ▼ 8.55% |
images/bn-arrows.png | 1.42KB | 0.60KB | ▼ 57.85% |
images/controls.png | 2.08KB | 1.38KB | ▼ 33.36% |
images/forkme.png | 7.74KB | 4.20KB | ▼ 45.79% |