Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/quran-verse-a-day/QuranDB.php+74
Undefined offset: 1
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.23ms] Passed 4 tests
Server-side resources used by Quran verse a day
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 41.82 ▼2.78 |
Dashboard /wp-admin | 3.42 ▲0.08 | 48.22 ▼10.47 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.04 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.43 ▲0.40 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.77 ▼0.06 |
Server storage [IO: ▲2.94MB] [DB: ▲2.99MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_quranADay |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_quranadaywidget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Quran verse a day
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.30 ▼1.08 | 1.64 ▼0.18 | 42.44 ▼3.59 |
Dashboard /wp-admin | 2,208 ▲19 | 5.86 ▲0.92 | 103.27 ▼13.47 | 41.94 ▲3.63 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.03 ▼0.01 | 40.45 ▼0.02 | 35.01 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.42 ▲0.66 | 609.88 ▼62.85 | 62.52 ▲0.92 |
Media Library /wp-admin/upload.php | 1,381 ▼10 | 4.21 ▲0.04 | 99.83 ▲1.78 | 42.84 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_quranadaywidget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
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
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/quran-verse-a-day/QuranDB.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: islam, muslim, ayat, verser, quran
quran-verse-a-day/QuranADayWidget.php 92% from 13 tests
Analyzing the main PHP file in "Quran verse a day" version 1.9
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quran-verse-a-day.php" instead of "QuranADayWidget.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/quran-verse-a-day/quran/file.bin
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 61 | 38 | 700 |
CSS | 1 | 4 | 0 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 40.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin