89% awesome-wp-widget-newsticker

Code Review | Awesome Wp Widget Newsticker

WordPress plugin Awesome Wp Widget Newsticker scored89%from 54 tests.

About plugin

  • Plugin page: awesome-wp-widget...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Jan 7, 2022
  • Number of updates: 12
  • Update frequency: every 159.8 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.38ms] Passed 4 tests

This is a short check of server-side resources used by Awesome Wp Widget Newsticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.26 ▼5.23
Dashboard /wp-admin3.32 ▲0.0146.83 ▼0.81
Posts /wp-admin/edit.php3.37 ▲0.0149.71 ▲4.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.49 ▼20.27
Media Library /wp-admin/upload.php3.24 ▲0.0135.17 ▼3.20

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_news-ticker
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Wp Widget Newsticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15013.56 ▼0.824.85 ▲2.9939.49 ▼9.44
Dashboard /wp-admin2,203 ▲155.84 ▲0.0398.78 ▼13.0242.16 ▼2.72
Posts /wp-admin/edit.php2,092 ▲31.97 ▲0.0035.69 ▼3.9333.10 ▲0.02
Add New Post /wp-admin/post-new.php1,540 ▲423.21 ▼0.03654.07 ▲13.4558.70 ▲7.70
Media Library /wp-admin/upload.php1,385 ▼64.33 ▲0.11100.04 ▲1.4441.26 ▼1.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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_news-ticker
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === awesome-wp-widget-newsticker === )
The official readme.txt is a good inspiration

awesome-wp-widget-newsticker/Awesome-Wp-Widget-Newsticker.php 92% from 13 tests

The main PHP script in "Awesome Wp Widget Newsticker" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-wp-widget-newsticker.php" instead of "Awesome-Wp-Widget-Newsticker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected287 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24349157
PHP1332575
CSS14055

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected