94% cylist

Code Review | Cylist

WordPress plugin Cylist scored 94% from 54 tests.

About plugin

  • Plugin page: cylist
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.2-5.6.2
  • WordPress version: 5.8.1
  • First release: Mar 25, 2021
  • Latest release: Mar 25, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cengizonkal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 78 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼141.11ms] Passed 4 tests

An overview of server-side resources used by Cylist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.11 ▲11.54
Dashboard /wp-admin3.12 ▲0.0644.17 ▲0.27
Posts /wp-admin/edit.php3.23 ▲0.1244.63 ▼0.91
Add New Post /wp-admin/post-new.php5.48 ▲0.0595.56 ▼552.79
Media Library /wp-admin/upload.php3.06 ▲0.0527.09 ▼11.02

Server storage [IO: ▲0.36MB] [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: 30 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cylist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲21716.17 ▲0.6411.42 ▲0.4047.40 ▲1.84
Dashboard /wp-admin2,967 ▲335.85 ▼0.26138.24 ▼8.38108.54 ▼5.09
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0164.41 ▲0.5090.85 ▲4.04
Add New Post /wp-admin/post-new.php1,672 ▲17218.83 ▲0.23366.19 ▲15.53125.41 ▲17.78
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.00159.18 ▲9.89119.20 ▼5.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/cylist/vendor/madcoda/php-youtube-api/src/Facades/Youtube.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/cylist/vendor/madcoda/php-youtube-api/src/YoutubeServiceProviderLaravel4.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Madcoda\\Youtube\\Youtube' not found in wp-content/plugins/cylist/vendor/madcoda/php-youtube-api/src/compat.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cylist/vendor/madcoda/php-youtube-api/tests/YoutubeTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/cylist/vendor/madcoda/php-youtube-api/src/YoutubeServiceProviderLaravel5.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cylist/cylist.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: youtube list

cylist/cylist.php Passed 13 tests

The main PHP script in "Cylist" version 1.0.0 is automatically included on every request by WordPress
23 characters long description:
Show youtube list items

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 plugin1,381 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.10
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods77.14%
▷ Public methods9697.96%
▷ Protected methods11.02%
▷ Private methods11.02%
▷ Named functions666.67%
▷ Anonymous functions333.33%
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin