Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼136.66ms] Passed 4 tests
Server-side resources used by Social Cinema
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.29 | 38.17 ▲16.11 |
Dashboard /wp-admin | 3.31 ▲0.25 | 48.99 ▲6.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 48.34 ▲4.62 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 96.31 ▼561.08 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 39.70 ▲3.17 |
Cache Settings /wp-admin/admin.php?page=social-cinema-cache | 3.16 | 30.64 |
Social Cinema /wp-admin/admin.php?page=social-cinema-settings | 3.17 | 33.06 |
Purge Cache /wp-admin/admin.php?page=social-cinema-cache-purge | 3.16 | 32.97 |
Server storage [IO: ▲5.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 158 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Social Cinema
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,744 ▲148 | 16.20 ▲0.68 | 11.05 ▲2.59 | 53.95 ▲1.30 |
Dashboard /wp-admin | 3,006 ▲69 | 5.91 ▼0.11 | 144.58 ▼18.05 | 122.29 ▲6.10 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.68 ▲0.00 | 68.93 ▲0.67 | 97.10 ▲2.95 |
Add New Post /wp-admin/post-new.php | 1,525 ▼90 | 18.51 ▼2.93 | 366.65 ▲91.46 | 115.87 ▲5.12 |
Media Library /wp-admin/upload.php | 1,846 ▲36 | 5.06 ▲0.06 | 162.51 ▲13.48 | 126.39 ▲1.24 |
Cache Settings /wp-admin/admin.php?page=social-cinema-cache | 1,091 | 2.09 | 62.10 | 76.86 |
Social Cinema /wp-admin/admin.php?page=social-cinema-settings | 1,379 | 2.09 | 62.72 | 80.34 |
Purge Cache /wp-admin/admin.php?page=social-cinema-cache-purge | 1,033 | 2.08 | 57.71 | 68.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 80× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Coordinate.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Drive.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Blogger.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Appsactivity.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/YouTubeAnalytics.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Autoscaler.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/AdExchangeSeller.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Reseller.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Vimeo\\Exceptions\\ExceptionInterface' not found in wp-content/plugins/social-cinema/code/lib/src/Vimeo/Exceptions/VimeoUploadException.php:6
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/social-cinema/code/lib/Google/src/Google/Service/Groupssettings.php:31
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== social-cinema ===
)
social-cinema/social-cinema.php Passed 13 tests
"Social Cinema" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Displays a selection of youtube videos in a variety of layouts
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
Success! There were no dangerous files found in this plugin154,474 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 10,474 | 29,386 | 154,165 |
JavaScript | 3 | 42 | 0 | 155 |
XML | 1 | 28 | 41 | 88 |
CSS | 1 | 6 | 0 | 37 |
JSON | 2 | 0 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 2,772 | |
▷ Abstract classes | 6 | 0.22% |
▷ Concrete classes | 2,766 | 99.78% |
▷ Final classes | 0 | 0.00% |
Methods | 21,886 | |
▷ Static methods | 14 | 0.06% |
▷ Public methods | 21,817 | 99.68% |
▷ Protected methods | 30 | 0.14% |
▷ Private methods | 39 | 0.18% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 239 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 239 | 100.00% |
▷ Public constants | 239 | 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
There were not PNG files found in your plugin