94% advanced-youtube-channel-pagination

Code Review | Advanced Youtube Channel Pagination

WordPress plugin Advanced Youtube Channel Pagination scored 94% from 53 tests.

About plugin

  • Plugin page: advanced-youtube-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2.1
  • WordPress version: 5.8.1
  • First release: Dec 22, 2016
  • Latest release: May 30, 2019
  • Number of updates: 40
  • Update frequency: every 22.2 days
  • Top authors: balasahebbhise (100%)

Code review

53 tests

User reviews

5 reviews

Install metrics

80+ active / 2,752 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼273.52ms] Passed 4 tests

A check of server-side resources used by Advanced Youtube Channel Pagination
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1641.25 ▲20.36
Dashboard /wp-admin3.15 ▲0.0950.03 ▲6.93
Posts /wp-admin/edit.php3.20 ▲0.0942.98 ▼0.70
Add New Post /wp-admin/post-new.php5.73 ▲0.3180.00 ▼1,091.92
Media Library /wp-admin/upload.php3.11 ▲0.1032.07 ▼8.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Youtube Channel Pagination
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲20016.30 ▲0.8412.72 ▲3.1169.08 ▲24.10
Dashboard /wp-admin2,947 ▲976.09 ▲0.24135.59 ▲0.51102.66 ▲4.55
Posts /wp-admin/edit.php2,726 ▲202.69 ▲0.0069.04 ▲2.6594.13 ▲0.28
Add New Post /wp-admin/post-new.php1,864 ▼17417.49 ▼1.94357.95 ▼5.65106.58 ▼0.20
Media Library /wp-admin/upload.php1,795 ▲235.03 ▼0.01156.70 ▲3.97108.86 ▼10.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-youtube-channel-pagination/advanced-youtube-channel-pagination.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.png), #2 (This screen shot description admin to screenshot-2.png), #3 (This screen shot description corresponds to screenshot-3.png)
The official readme.txt is a good inspiration

advanced-youtube-channel-pagination/advanced-youtube-channel-pagination.php Passed 13 tests

The principal PHP file in "Advanced Youtube Channel Pagination" v. 1.0 is loaded by WordPress automatically on each request
73 characters long description:
The plugin is usefull for showing youtube channel videos with pagination.

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
No dangerous file extensions were detected283 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.66MB with 0.43MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png296.27KB99.33KB▼ 66.47%
screenshot-3.png323.51KB107.74KB▼ 66.70%
screenshot-2.png53.38KB19.69KB▼ 63.12%