Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.15ms] Passed 4 tests
A check of server-side resources used by Freecaster
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.63 ▼4.08 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.10 ▼0.61 |
Posts /wp-admin/edit.php | 3.48 ▲0.11 | 53.09 ▲0.77 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.71 ▼0.68 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.87 ▲1.43 |
Freecaster /wp-admin/options-general.php?page=freecaster | 3.27 | 248.51 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Freecaster
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▼0.05 | 1.67 ▼0.11 | 43.53 ▼0.09 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.09 | 91.35 ▲0.06 | 43.58 ▲3.41 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.03 | 39.65 ▲3.79 | 35.17 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.20 ▲0.03 | 644.77 ▼15.39 | 51.86 ▼12.09 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▼0.08 | 99.70 ▼10.64 | 41.92 ▼3.75 |
Freecaster /wp-admin/options-general.php?page=freecaster | 924 | 1.83 | 24.41 | 34.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/freecaster/fc_choice.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/freecaster/fc_ajax.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
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
9 plugin tags: embed, live, video player, jwplayer, video...
freecaster/freecaster.php Passed 13 tests
This is the main PHP file of "Freecaster" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
This plugin allows you to embed videos from the Freecaster Platform.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin836 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 214 | 158 | 666 |
PO File | 1 | 33 | 0 | 99 |
CSS | 1 | 15 | 0 | 71 |
PHP code Passed 2 tests
An short overview of 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.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/camera.png | 15.88KB | 1.42KB | ▼ 91.03% |
img/warning.png | 0.70KB | 0.56KB | ▼ 19.92% |
img/background.png | 32.41KB | 20.51KB | ▼ 36.73% |
img/problem.png | 0.10KB | 0.11KB | 0.00% |
img/search_big_icon.png | 7.90KB | 4.92KB | ▼ 37.65% |