Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.70MB] [CPU: ▼48.37ms] Passed 4 tests
A check of server-side resources used by Wp-Filmfeed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 8.60 ▼30.04 |
Dashboard /wp-admin | 2.32 ▼1.03 | 10.85 ▼48.24 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 11.38 ▼35.77 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 11.27 ▼79.43 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 8.87 ▼22.92 |
Server storage [IO: ▲0.32MB] [DB: ▲0.31MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_wp_filmfeed_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Wp-Filmfeed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.48 ▲0.30 | 1.67 ▲0.02 | 41.19 ▼4.67 |
Dashboard /wp-admin | 2,206 ▲18 | 6.01 ▲0.11 | 97.53 ▼21.33 | 39.70 ▼3.83 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.04 | 34.88 ▼1.52 | 34.53 ▼6.73 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.22 ▲0.66 | 590.64 ▼38.64 | 58.63 ▲0.65 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.04 | 94.21 ▼7.24 | 40.81 ▼2.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WP_Filmfeed_Widget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_wp_filmfeed_widget
- widget_recent-posts
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-filmfeed/views/widget_options.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-filmfeed/wp-filmfeed-widget.php:19
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-filmfeed/views/widget.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-filmfeed/wp-filmfeed-widget.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
4 plugin tags: cinema, movies, filmfeed, widget
wp-filmfeed/wp-filmfeed.php Passed 13 tests
Analyzing the main PHP file in "Wp-Filmfeed" version 1.0.3
15 characters long description:
Filmfeed widget
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 detected582 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 93 | 229 | 529 |
Markdown | 1 | 25 | 0 | 38 |
CSS | 1 | 4 | 11 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 44.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 56.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 176.56KB | 43.82KB | ▼ 75.18% |
screenshot-1.png | 98.22KB | 33.02KB | ▼ 66.39% |