78% changa-personalized-short-video-feeds

Code Review | Changa : Personalized short-video feeds

WordPress plugin Changa : Personalized short-video feeds scored78%from 54 tests.

About plugin

  • Plugin page: changa-personaliz...
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.0
  • WordPress version: 6.3.1
  • First release: Apr 1, 2021
  • Latest release: Jul 21, 2021
  • Number of updates: 27
  • Update frequency: every 4.1 days
  • Top authors: rajendrab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.68ms] Passed 4 tests

Analyzing server-side resources used by Changa : Personalized short-video feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.44 ▼2.54
Dashboard /wp-admin3.34 ▲0.0445.52 ▼1.70
Posts /wp-admin/edit.php3.39 ▲0.0351.43 ▲7.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.85 ▼4.86
Media Library /wp-admin/upload.php3.26 ▲0.0335.27 ▲2.37

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Changa : Personalized short-video feeds: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,295 ▲52413.81 ▼0.5711.38 ▲9.3244.60 ▼0.15
Dashboard /wp-admin2,425 ▲2375.90 ▲1.04101.89 ▼6.2187.11 ▲46.77
Posts /wp-admin/edit.php2,284 ▲1952.11 ▲0.0747.26 ▲12.5039.29 ▲3.57
Add New Post /wp-admin/post-new.php1,466 ▼6816.68 ▼6.55635.15 ▼49.0951.75 ▼0.78
Media Library /wp-admin/upload.php1,651 ▲2634.33 ▲0.10108.66 ▲7.6750.95 ▲7.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/changa-personalized-short-video-feeds/uninstall.php
    • > /wp-content/plugins/changa-personalized-short-video-feeds/pages/dashboard.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/changa-personalized-short-video-feeds/pages/dashboard.php:381

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can look at the official readme.txt

changa-personalized-short-video-feeds/changa.php 92% from 13 tests

The main PHP script in "Changa : Personalized short-video feeds" version 1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("changa-personalized-short-video-feeds.php" instead of "changa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,731 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS220663
PHP39253637
JavaScript42539431

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/changa2.png0.70KB0.79KB0.00%