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.21MB] [CPU: ▼2.94ms] Passed 4 tests
Server-side resources used by Muizz Newsticker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.14 ▼0.96 |
Dashboard /wp-admin | 3.58 ▲0.28 | 47.66 ▲2.07 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 48.73 ▼1.68 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 82.10 ▼11.19 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.00 ▲3.77 |
Muizz Newsticker /wp-admin/options-general.php?page=Newsticker_id | 3.42 | 38.28 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
mznst_newsticker_style_settings |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
mznst_newsticker_general_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Muizz Newsticker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲338 | 15.35 ▲0.79 | 6.54 ▲4.85 | 37.17 ▼10.90 |
Dashboard /wp-admin | 2,368 ▲176 | 6.62 ▲1.65 | 120.92 ▲2.50 | 36.77 ▼7.05 |
Posts /wp-admin/edit.php | 2,274 ▲185 | 3.52 ▲1.53 | 54.14 ▲12.77 | 32.18 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.26 ▲0.11 | 671.04 ▼36.35 | 37.12 ▼19.25 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.42 ▲0.21 | 83.12 ▼17.56 | 44.45 ▼1.10 |
Muizz Newsticker /wp-admin/options-general.php?page=Newsticker_id | 1,761 | 4.14 | 80.14 | 25.39 |
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 8 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- mznst_newsticker_general_settings
- mznst_newsticker_style_settings
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/mz-newsticker/admin/partials/mz-newsticker-admin-display.php
- > /wp-content/plugins/mz-newsticker/public/partials/mz-newsticker-public-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mz-newsticker/public/inc/mz-newsticker-shortcode.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mz-newsticker/public/settings/class.mz_newsticker.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mz-newsticker/public/settings/class.mz_newsticker.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mz-newsticker/public/class-mz-newsticker-public.php:130
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (General Settings), #2 (Style Settings), #3 (Add Shortcode)
mz-newsticker/mz-newsticker.php Passed 13 tests
This is the main PHP file of "Muizz Newsticker" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,934 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 175 | 93 | 1,111 |
PHP | 17 | 343 | 732 | 755 |
CSS | 3 | 6 | 9 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 52 | 91.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.77% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin