83% bytecoder-news-ticker

Code Review | Bytecoder News Ticker

WordPress plugin Bytecoder News Ticker scored83%from 54 tests.

About plugin

  • Plugin page: bytecoder-news-ti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 4, 2014
  • Latest release: Oct 4, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: Sayfur Rahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,090 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: ▼11.82ms] Passed 4 tests

Analyzing server-side resources used by Bytecoder News Ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.46 ▼2.68
Dashboard /wp-admin3.31 ▼0.0348.77 ▼19.84
Posts /wp-admin/edit.php3.37 ▲0.0149.38 ▲0.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.70 ▼24.84
Media Library /wp-admin/upload.php3.24 ▲0.0137.99 ▲0.10

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bytecoder News Ticker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲9413.40 ▼1.168.35 ▲6.4142.26 ▲0.83
Dashboard /wp-admin2,199 ▲225.54 ▼0.0287.85 ▼4.9044.03 ▲1.64
Posts /wp-admin/edit.php2,101 ▼22.03 ▲0.0337.86 ▼8.2733.32 ▼4.97
Add New Post /wp-admin/post-new.php1,530 ▲423.41 ▲0.36698.94 ▲6.6660.03 ▲2.80
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.15139.74 ▲19.0355.86 ▲6.80

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bytecoder-news-ticker/function.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
  • Screenshots: Screenshot #1 (Installed in demo server.) image not found
You can look at the official readme.txt

bytecoder-news-ticker/function.php 92% from 13 tests

The main PHP file in "Bytecoder News Ticker" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bytecoder-news-ticker.php" instead of "function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin80 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111953
CSS10026
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected