90% newstick-ultra

Code Review | NewsTick Ultra

WordPress plugin NewsTick Ultra scored90%from 54 tests.

About plugin

  • Plugin page: newstick-ultra
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Jul 21, 2020
  • Latest release: Jul 21, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: johnvictor82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.39ms] Passed 4 tests

An overview of server-side resources used by NewsTick Ultra
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.82 ▼4.69
Dashboard /wp-admin3.37 ▲0.0655.61 ▲3.97
Posts /wp-admin/edit.php3.42 ▲0.0650.48 ▲2.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0792.22 ▼6.13
Media Library /wp-admin/upload.php3.29 ▲0.0637.47 ▼0.84

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 17 new options
New WordPress options
can_compress_scripts
NSWUP_fil_cat
NSWUP_text
widget_recent-comments
NSWUP_theme
NSWUP_col_bar
NSWUP_col_bar_tit
NSWUP_col_link
widget_theysaidso_widget
NSWUP_dim_barra
...

Browser metrics Passed 4 tests

A check of browser resources used by NewsTick Ultra
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13313.80 ▼0.398.03 ▲6.1842.77 ▼5.32
Dashboard /wp-admin2,218 ▲385.67 ▲0.0695.38 ▼0.6637.64 ▼5.65
Posts /wp-admin/edit.php2,123 ▲232.02 ▲0.0440.70 ▲2.1134.45 ▼1.48
Add New Post /wp-admin/post-new.php1,543 ▲1523.36 ▲0.22684.10 ▲4.9161.19 ▼11.69
Media Library /wp-admin/upload.php1,423 ▲264.19 ▲0.03102.38 ▲1.6146.16 ▲3.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 17 options in the database
    • NSWUP_col_bar
    • NSWUP_col_not
    • NSWUP_dim_barra
    • theysaidso_admin_options
    • can_compress_scripts
    • NSWUP_theme
    • widget_theysaidso_widget
    • NSWUP_col_link
    • NSWUP_col_tit
    • NSWUP_title_content
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in newstick-ultra/assets to your readme.txt
The official readme.txt is a good inspiration

newstick-ultra/newstick-ultra.php Passed 13 tests

This is the main PHP file of "NewsTick Ultra" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
A stylish and customisable news ticker that displays news or alternative content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected905 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript452100384
PHP28314355
CSS2320166

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin