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.66MB] [CPU: ▲8.77ms] Passed 4 tests
An overview of server-side resources used by Nice Latest News Ticker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 49.61 ▲10.12 |
Dashboard /wp-admin | 3.99 ▲0.69 | 58.82 ▲8.04 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 59.25 ▲9.53 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 102.34 ▲14.16 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 46.71 ▲7.38 |
Add New Ticker /wp-admin/post-new.php?post_type=nice_ltn_ticker | 4.28 | 53.36 |
All News Ticker /wp-admin/edit.php?post_type=nice_ltn_ticker | 3.96 | 48.66 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 121 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Nice Latest News Ticker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,015 ▲280 | 13.74 ▼0.48 | 6.54 ▲4.64 | 51.22 ▲5.46 |
Dashboard /wp-admin | 2,303 ▲115 | 5.13 ▲0.09 | 120.91 ▲19.64 | 49.03 ▲6.98 |
Posts /wp-admin/edit.php | 2,186 ▲97 | 2.27 ▲0.27 | 39.00 ▲2.41 | 39.74 ▲8.69 |
Add New Post /wp-admin/post-new.php | 1,550 ▲28 | 17.88 ▼3.08 | 744.48 ▼196.17 | 67.68 ▲7.19 |
Media Library /wp-admin/upload.php | 1,513 ▲125 | 4.32 ▲0.13 | 126.18 ▲8.69 | 53.45 ▲10.09 |
Add New Ticker /wp-admin/post-new.php?post_type=nice_ltn_ticker | 2,100 | 3.35 | 101.15 | 60.83 |
All News Ticker /wp-admin/edit.php?post_type=nice_ltn_ticker | 1,161 | 2.20 | 40.69 | 37.89 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nice-latest-news-ticker/plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/nice-latest-news-ticker/library/metabox/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in nice-latest-news-ticker/assets to your readme.txt
nice-latest-news-ticker/plugin.php 92% from 13 tests
The primary PHP file in "Nice Latest News Ticker" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nice-latest-news-ticker.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin14,528 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 2,134 | 5,775 | 6,759 |
CSS | 14 | 1,205 | 1,151 | 4,876 |
JavaScript | 8 | 354 | 500 | 1,514 |
Sass | 16 | 300 | 25 | 1,379 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 8 | 11.76% |
▷ Concrete classes | 60 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 525 | |
▷ Static methods | 87 | 16.57% |
▷ Public methods | 434 | 82.67% |
▷ Protected methods | 88 | 16.76% |
▷ Private methods | 3 | 0.57% |
Functions | 32 | |
▷ Named functions | 30 | 93.75% |
▷ Anonymous functions | 2 | 6.25% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
library/metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
library/metabox/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
library/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
library/metabox/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |