89% best-ticker

Code Review | Best Ticker

WordPress plugin Best Ticker scored89%from 54 tests.

About plugin

  • Plugin page: best-ticker
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Jun 4, 2019
  • Number of updates: 19
  • Update frequency: every 2.5 days
  • Top authors: amzad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /759 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.00MB] [CPU: ▼9.37ms] Passed 4 tests

Server-side resources used by Best Ticker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▼2.99
Dashboard /wp-admin3.32 ▼0.0347.78 ▼20.59
Posts /wp-admin/edit.php3.37 ▲0.0151.39 ▲1.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.79 ▼13.51
Media Library /wp-admin/upload.php3.24 ▲0.0138.21 ▼0.39

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Best Ticker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.44 ▼0.948.65 ▲7.0440.47 ▼0.97
Dashboard /wp-admin2,202 ▲225.67 ▼0.0494.31 ▲3.0640.96 ▼2.66
Posts /wp-admin/edit.php2,101 ▲12.15 ▲0.1537.16 ▼0.5735.43 ▼0.55
Add New Post /wp-admin/post-new.php1,530 ▼123.01 ▼0.18729.34 ▲61.7451.07 ▼9.05
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.03112.61 ▲8.3948.03 ▼0.54

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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 require attention:
  • Contributors: Contributors not specified
The official readme.txt might help

best-ticker/main-function.php 92% from 13 tests

This is the main PHP file of "Best Ticker" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("best-ticker.php" instead of "main-function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP119854
CSS10011
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions2
▷ Named functions2100.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