Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.15MB] [CPU: ▲16.74ms] Passed 4 tests
Server-side resources used by Ramadan
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.27 ▲1.81 | 88.81 ▲48.86 |
Dashboard /wp-admin | 5.07 ▲1.77 | 65.24 ▲20.84 |
Posts /wp-admin/edit.php | 5.17 ▲1.81 | 81.92 ▲32.81 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 108.09 ▲9.91 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.32 ▲3.40 |
Ramadan /wp-admin/options-general.php?page=ramadan | 3.44 | 36.59 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ramadan
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.63 ▼0.77 | 1.54 ▼0.12 | 36.52 ▼3.53 |
Dashboard /wp-admin | 2,210 ▲30 | 5.79 ▲0.71 | 96.23 ▼24.77 | 38.37 ▼0.20 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.98 ▼0.05 | 39.51 ▼0.84 | 35.60 ▼1.44 |
Add New Post /wp-admin/post-new.php | 6,431 ▲4,895 | 20.92 ▼2.18 | 953.11 ▲287.79 | 38.78 ▼18.18 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.29 ▲0.09 | 101.24 ▼3.42 | 43.11 ▼0.23 |
Ramadan /wp-admin/options-general.php?page=ramadan | 986 | 2.18 | 24.68 | 23.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/month-links/render.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/monthly/render.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/ramadan/render.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/daily/render.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/yearly/render.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/ramadan/build/city-selector/render.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: block
ramadan/ramadan.php Passed 13 tests
The entry point to "Ramadan" version 1.0.4 is a PHP file that has certain tags in its header comment area
48 characters long description:
Display ramadan and prayer time in your website.
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
No dangerous file extensions were detected2,069 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 151 | 45 | 1,369 |
JSON | 6 | 0 | 0 | 345 |
PO File | 1 | 129 | 185 | 292 |
CSS | 1 | 9 | 0 | 57 |
JavaScript | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 10 | 17.54% |
▷ Public methods | 55 | 96.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.51% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin