Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.40ms] Passed 4 tests
An overview of server-side resources used by ownRadio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.57 ▼4.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.26 ▼4.17 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.24 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 106.18 ▲6.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.78 ▼6.30 |
ownRadio /wp-admin/options-general.php?page=my-setting-admin | 3.18 | 32.72 |
Server storage [IO: ▲1.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
netvoxlab_ownradio_player_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ownRadio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.23 ▼1.06 | 1.92 ▼0.05 | 38.94 ▼9.81 |
Dashboard /wp-admin | 2,213 ▲22 | 5.86 ▼0.04 | 99.74 ▼6.07 | 39.75 ▼0.81 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.04 | 34.65 ▼5.33 | 33.15 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.51 ▼0.53 | 667.35 ▼25.40 | 53.24 ▲0.31 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▼0.01 | 95.19 ▼13.71 | 42.60 ▼2.28 |
ownRadio /wp-admin/options-general.php?page=my-setting-admin | 801 | 2.06 | 25.77 | 28.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- netvoxlab_ownradio_player_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=my-setting-admin
- > Notice in wp-content/plugins/com-netvoxlab-ownradio/ownradio.php+142
Trying to access array offset on value of type bool
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/com-netvoxlab-ownradio/nvxownradioadminmenu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/com-netvoxlab-ownradio/ownradio.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #2 (This is example of web site with the ownRadio player.) image missing
com-netvoxlab-ownradio/ownradio.php 92% from 13 tests
Analyzing the main PHP file in "ownRadio" version 2019.10.29
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("com-netvoxlab-ownradio.php" instead of "ownradio.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,584 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 64 | 12 | 1,824 |
JavaScript | 3 | 162 | 431 | 666 |
SVG | 9 | 0 | 4 | 640 |
PHP | 2 | 110 | 68 | 454 |
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.19 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 14 | 66.67% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.28MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/img/bg-1.png | 820.79KB | 288.55KB | ▼ 64.84% |
assets/images/pic.png | 146.73KB | 12.36KB | ▼ 91.58% |
assets/pic.png | 146.73KB | 12.36KB | ▼ 91.58% |
assets/css/img/iphone.png | 167.56KB | 53.08KB | ▼ 68.32% |
assets/screenshot-1.png | 25.55KB | 13.82KB | ▼ 45.91% |