78% mz-newsticker

Code Review | Muizz Newsticker

WordPress plugin Muizz Newsticker scored78%from 54 tests.

About plugin

  • Plugin page: mz-newsticker
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.31+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Dec 13, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: porosh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,116 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1637.14 ▼0.96
Dashboard /wp-admin3.58 ▲0.2847.66 ▲2.07
Posts /wp-admin/edit.php3.63 ▲0.2748.73 ▼1.68
Add New Post /wp-admin/post-new.php6.10 ▲0.2182.10 ▼11.19
Media Library /wp-admin/upload.php3.42 ▲0.1938.00 ▲3.77
Muizz Newsticker /wp-admin/options-general.php?page=Newsticker_id3.4238.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,084 ▲33815.35 ▲0.796.54 ▲4.8537.17 ▼10.90
Dashboard /wp-admin2,368 ▲1766.62 ▲1.65120.92 ▲2.5036.77 ▼7.05
Posts /wp-admin/edit.php2,274 ▲1853.52 ▲1.5354.14 ▲12.7732.18 ▼3.16
Add New Post /wp-admin/post-new.php1,533 ▼023.26 ▲0.11671.04 ▼36.3537.12 ▼19.25
Media Library /wp-admin/upload.php1,416 ▲314.42 ▲0.2183.12 ▼17.5644.45 ▼1.10
Muizz Newsticker /wp-admin/options-general.php?page=Newsticker_id1,7614.1480.1425.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

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)
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript3175931,111
PHP17343732755
CSS36968

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity6.89
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods23.51%
▷ Public methods5291.23%
▷ Protected methods00.00%
▷ Private methods58.77%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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