Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 33.11 ▲11.54 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.17 ▲0.27 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 44.63 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 95.56 ▼552.79 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲217 | 16.17 ▲0.64 | 11.42 ▲0.40 | 47.40 ▲1.84 |
Dashboard /wp-admin | 2,967 ▲33 | 5.85 ▼0.26 | 138.24 ▼8.38 | 108.54 ▼5.09 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 64.41 ▲0.50 | 90.85 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.83 ▲0.23 | 366.19 ▲15.53 | 125.41 ▲17.78 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.00 | 159.18 ▲9.89 | 119.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 270 | 491 | 1,205 |
JSON | 3 | 0 | 0 | 88 |
Markdown | 1 | 19 | 0 | 48 |
YAML | 2 | 5 | 0 | 21 |
XML | 1 | 1 | 0 | 19 |
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 code | 0.23 |
Average class complexity | 11.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 7 | 7.14% |
▷ Public methods | 96 | 97.96% |
▷ Protected methods | 1 | 1.02% |
▷ Private methods | 1 | 1.02% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 24 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 24 | 100.00% |
▷ Public constants | 24 | 100.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