Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.81ms] Passed 4 tests
This is a short check of server-side resources used by SM News Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.77 ▲5.48 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.62 ▼0.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.91 ▲6.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.16 ▼3.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.11 ▲5.61 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SM News Ticker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.59 ▼0.81 | 5.45 ▲3.68 | 36.46 ▼5.43 |
Dashboard /wp-admin | 2,223 ▲35 | 4.88 ▼0.98 | 105.72 ▲1.65 | 81.12 ▲41.60 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.98 ▼0.04 | 36.68 ▼1.22 | 35.44 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,683 ▲169 | 22.34 ▲4.86 | 679.57 ▼7.39 | 61.43 ▲2.79 |
Media Library /wp-admin/upload.php | 1,405 ▲23 | 4.23 ▲0.01 | 97.10 ▼20.14 | 66.17 ▲18.57 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at 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/sm-news-ticker/sm-news-ticker.php:20
- > PHP Fatal error
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 97% 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (SM News Ticker settings page.), #2 (SM News Ticker output.)
sm-news-ticker/sm-news-ticker.php Passed 13 tests
The entry point to "SM News Ticker" version 1.0.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Wordpress plugin to show post as jQuery News Ticker..
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
Success! There were no dangerous files found in this plugin1,286 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 16 | 17 | 362 |
JavaScript | 2 | 32 | 70 | 343 |
SVG | 1 | 0 | 0 | 223 |
HTML | 1 | 74 | 0 | 183 |
PHP | 1 | 47 | 16 | 175 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 3.99KB | 3.06KB | ▼ 23.25% |
assets/images/dl-arr.png | 0.46KB | 0.42KB | ▼ 8.55% |
assets/images/forkme.png | 7.74KB | 4.20KB | ▼ 45.79% |
assets/images/controls.png | 2.08KB | 1.38KB | ▼ 33.36% |