84% cticker

Code Review | CTicker

WordPress plugin CTicker scored84%from 54 tests.

About plugin

  • Plugin page: cticker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Apr 3, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: Sayfur Rahman (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.16ms] Passed 4 tests

Server-side resources used by CTicker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.59 ▲1.19
Dashboard /wp-admin3.32 ▲0.0248.80 ▼2.08
Posts /wp-admin/edit.php3.37 ▲0.0249.73 ▲0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.74 ▼8.04
Media Library /wp-admin/upload.php3.24 ▲0.0238.20 ▲1.29

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

CTicker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.60 ▼0.985.71 ▲3.5042.28 ▲0.20
Dashboard /wp-admin2,211 ▲264.82 ▼1.07107.69 ▼6.5739.23 ▼6.96
Posts /wp-admin/edit.php2,094 ▲52.12 ▲0.1040.15 ▼0.5937.67 ▼1.99
Add New Post /wp-admin/post-new.php1,541 ▲818.44 ▼4.95688.88 ▼50.1354.39 ▼4.08
Media Library /wp-admin/upload.php1,396 ▲84.17 ▼0.0595.52 ▼12.8043.72 ▼4.98

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cticker/function.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cticker/mce/mcebutton.php:7

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: type effect jquery post ticker, latest post, jquery effect, ticker, news ticker...

cticker/function.php 85% from 13 tests

This is the main PHP file of "CTicker" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cticker.php" instead of "function.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 309 characters long)

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
Everything looks great! No dangerous files found in this plugin438 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript280291
PHP221990
CSS110057

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mce/js/cticker-mcebutton.png5.08KB2.02KB▼ 60.29%