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
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/quran-text-multilanguage/inc/functions_quran.php+158
Undefined variable: sura
Server metrics [RAM: ▼1.83MB] [CPU: ▼51.87ms] Passed 4 tests
This is a short check of server-side resources used by Quran multilanguage Text & Audio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.64 ▼30.00 |
Dashboard /wp-admin | 2.17 ▼1.13 | 7.08 ▼43.68 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 7.05 ▼41.43 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 6.65 ▼92.36 |
Media Library /wp-admin/upload.php | 2.17 ▼1.05 | 7.89 ▼26.76 |
Server storage [IO: ▲48.23MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Total filesystem usage must be limited to 25MB (currently using 48.23MB)
Filesystem: 238 new files
Database: 1 new table, 21 new options
New tables |
---|
quran |
New WordPress options |
---|
text_quran_title |
background_quran_trans |
quran_changerecitatortxt |
verse_quran_number |
can_compress_scripts |
background_quran_title |
db_upgraded |
widget_recent-comments |
background_quran_number |
quran_template |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Quran multilanguage Text & Audio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 14.02 ▼0.35 | 19.89 ▲18.30 | 37.85 ▼2.30 |
Dashboard /wp-admin | 2,209 ▲28 | 5.65 ▼0.06 | 79.90 ▼17.33 | 83.96 ▲41.87 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.00 ▲0.04 | 34.00 ▼9.34 | 33.32 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.31 ▲0.43 | 682.96 ▲45.98 | 45.06 ▼6.85 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.22 ▲0.01 | 96.85 ▼8.77 | 63.91 ▲19.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/quran-text-multilanguage/inc/functions_quran.php+158
Undefined variable: sura
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 21× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/quran-text-multilanguage/css/msdropdown/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/templates/template-4/index.php
- > /wp-content/plugins/quran-text-multilanguage/admin/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/images/msdropdown/icons/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/images/country/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/quran/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/templates/template-3/index.php
- > /wp-content/plugins/quran-text-multilanguage/admin/js/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/images/msdropdown/index.php
- > /wp-content/plugins/quran-text-multilanguage/inc/templates/template-5/index.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quran-text-multilanguage/inc/template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/quran-text-multilanguage/admin/quran-admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
quran-text-multilanguage/quran-text-multilanguage.php Passed 13 tests
Analyzing the main PHP file in "Quran multilanguage Text & Audio" version 2.3.20
124 characters long description:
Quran Text Multilanguage translated into 29 languages. Full ajax version and responsive. Fully customizable. More reciter...
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected12,666 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 10,639 | 2,219 | 9,341 |
XML | 1 | 0 | 0 | 1,583 |
PHP | 7 | 944 | 110 | 1,474 |
CSS | 6 | 77 | 7 | 213 |
SVG | 1 | 0 | 1 | 46 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
106 PNG files occupy 1.60MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/templates/template-5/b-g.png | 18.69KB | 8.04KB | ▼ 56.99% |
inc/images/Pause-icon.png | 10.32KB | 5.83KB | ▼ 43.48% |
inc/templates/template-5/b-d.png | 18.44KB | 8.08KB | ▼ 56.16% |
inc/images/country/pk.png | 0.56KB | 0.68KB | 0.00% |
inc/templates/top.png | 39.43KB | 7.90KB | ▼ 79.97% |