Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/listen-to-quran-verses/widget/widget.php+116
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.31ms] Passed 4 tests
An overview of server-side resources used by Listen to Quran Verses
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.09 ▼36.53 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.20 ▼60.38 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.00 ▼46.97 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.11 ▼93.35 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.05 ▼29.32 |
Listen To Quran Verses /wp-admin/options-general.php?page=listen-to-quran-verses | 2.05 | 5.14 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_random_recitation_widget |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Listen to Quran Verses
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▲0.07 | 1.72 ▲0.19 | 42.10 ▲1.99 |
Dashboard /wp-admin | 2,199 ▲25 | 5.65 ▲0.12 | 83.53 ▼13.41 | 40.46 ▲0.99 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.03 | 37.76 ▲2.49 | 34.61 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.63 ▲5.52 | 626.19 ▼0.08 | 60.24 ▼8.24 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▲0.06 | 104.55 ▼13.23 | 47.06 ▼4.53 |
Listen To Quran Verses /wp-admin/options-general.php?page=listen-to-quran-verses | 865 | 1.99 | 24.96 | 37.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/listen-to-quran-verses/widget/widget.php+116
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_random_recitation_widget
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
- > GET request to /wp-admin/options-general.php?page=listen-to-quran-verses
- > Deprecated in wp-content/plugins/listen-to-quran-verses/widget/widget.php+116
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=listen-to-quran-verses
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Random_Recitation_Widget is deprecated since version 4.3.0! Use __construct() instead.
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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/listen-to-quran-verses/mqv.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/listen-to-quran-verses/administration.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function mqvLoadDictionary() in wp-content/plugins/listen-to-quran-verses/admin-form.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/listen-to-quran-verses/widget/widget.php:5
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Enlgish interface showing the new interface), #2 (Enlgish interface showing the new autocomplete function & repeat the whole interface hint), #3 (German version of the widget to play a random ayah every time the page loaded), #4 (English version of the administration interface to change the plugin language)
listen-to-quran-verses/mqv.php 85% from 13 tests
"Listen to Quran Verses" version 2.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 287 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("listen-to-quran-verses.php" instead of "mqv.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,064 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 135 | 117 | 1,247 |
PHP | 9 | 62 | 38 | 416 |
CSS | 3 | 30 | 38 | 310 |
HTML | 2 | 7 | 11 | 91 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/ui-lightness/images/ui-icons_228ef1_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.25KB | 0.15KB | ▼ 39.62% |
css/ui-lightness/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |