Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/radio-islam/includes/widget.php+210
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼57.49ms] Passed 4 tests
Server-side resources used by Radio Islam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.02 ▼42.04 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.21 ▼42.53 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.62 ▼43.43 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 6.06 ▼101.97 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.54 ▼30.96 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_rii |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Radio Islam: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.32 ▼0.99 | 4.17 ▲1.81 | 42.88 ▲1.34 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.96 | 104.09 ▼4.71 | 39.88 ▼5.16 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.07 | 41.26 ▼0.46 | 36.22 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.08 ▼0.25 | 678.86 ▲62.95 | 60.12 ▲10.80 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.27 ▲0.01 | 95.58 ▼2.15 | 42.37 ▼2.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/radio-islam/includes/widget.php+210
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_rii
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radio-islam/includes/widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/radio-islam/views/player.php:1
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add an image for screenshot #3 (Pengaturan widget)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== radio-islam ===
)
radio-islam/radio-islam.php 85% from 13 tests
This is the main PHP file of "Radio Islam" version 2.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,221 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 5 | 775 |
PHP | 4 | 47 | 70 | 222 |
SVG | 1 | 0 | 0 | 200 |
JavaScript | 5 | 0 | 9 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/radio-quran.png | 25.33KB | 9.03KB | ▼ 64.36% |
assets/images/rii.png | 54.24KB | 20.24KB | ▼ 62.69% |
assets/images/radio-at.png | 6.00KB | 2.36KB | ▼ 60.61% |