Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.51ms] Passed 4 tests
A check of server-side resources used by jMarquee - jQuery News Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.81 ▼2.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.21 ▼5.51 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.29 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.71 ▲2.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.17 ▲2.80 |
jQuery News Ticker /wp-admin/options-general.php?page=jnewsticker-main-menu | 3.22 | 37.60 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
jnewsticker |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
jMarquee - jQuery News Ticker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.29 ▼1.08 | 2.33 ▲0.47 | 46.00 ▲0.69 |
Dashboard /wp-admin | 2,212 ▲27 | 5.84 ▲0.86 | 107.13 ▼40.49 | 39.51 ▼21.39 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.05 | 42.19 ▲6.78 | 35.17 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,519 ▼24 | 17.81 ▼0.32 | 592.26 ▼20.48 | 71.62 ▲16.64 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.18 ▼0.02 | 102.66 ▲4.74 | 45.06 ▲4.15 |
jQuery News Ticker /wp-admin/options-general.php?page=jnewsticker-main-menu | 888 | 2.16 | 24.38 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- jnewsticker
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=jnewsticker-main-menu
- > Notice in wp-content/plugins/jmarquee-jquery-news-ticker/jnewsticker/jnewsticker.php+91
Undefined index: pluginSelector
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jmarquee-jquery-news-ticker/jnewsticker/jnewsticker.php:23
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Search for jMarquee - jQuery News Ticker - Front)
jmarquee-jquery-news-ticker/index.php 92% from 13 tests
The main PHP file in "jMarquee - jQuery News Ticker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("jmarquee-jquery-news-ticker.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected420 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 6 | 0 | 182 |
PHP | 2 | 6 | 21 | 160 |
PO File | 1 | 19 | 21 | 50 |
JavaScript | 1 | 1 | 1 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jnewsticker/images/32.png | 0.84KB | 0.68KB | ▼ 19.31% |
jnewsticker/images/128.png | 3.01KB | 1.85KB | ▼ 38.74% |
jnewsticker/images/16.png | 0.46KB | 0.42KB | ▼ 9.75% |
screenshot-1.png | 28.08KB | 12.80KB | ▼ 54.44% |
screenshot-2.png | 65.68KB | 28.72KB | ▼ 56.26% |