Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▲6.65ms] Passed 4 tests
Server-side resources used by WP-Hijri
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 46.10 ▲3.12 |
Dashboard /wp-admin | 4.05 ▲0.74 | 53.60 ▲1.60 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 53.18 ▲10.58 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 96.80 ▲11.87 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 45.48 ▲11.28 |
WP-Hijri /wp-admin/options-general.php?page=settings_wp_hijri | 3.90 | 35.28 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_hijri_archives |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_hijri_calendar |
Hijri_Settings |
widget_recent-posts |
Browser metrics Passed 4 tests
WP-Hijri: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.40 | 1.77 ▼0.03 | 43.90 ▼1.61 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.07 | 91.51 ▼0.92 | 38.58 ▼1.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.00 | 35.47 ▼1.28 | 34.90 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.36 ▲0.21 | 658.54 ▲7.54 | 58.98 ▼0.32 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.36 ▲0.11 | 102.70 ▼2.61 | 44.44 ▲0.04 |
WP-Hijri /wp-admin/options-general.php?page=settings_wp_hijri | 2,220 | 2.06 | 30.90 | 33.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_hijri_archives
- Hijri_Settings
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_hijri_calendar
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(): Failed opening 'THE_WP_HIJRI_PATHinclude/hijri.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-hijri/include/hijri-widgets.php on line 2
- > PHP Warning
Use of undefined constant THE_WP_HIJRI_PATH - assumed 'THE_WP_HIJRI_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-hijri/include/hijri-widgets.php on line 2
- > PHP Warning
include_once(THE_WP_HIJRI_PATHinclude/hijri.class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-hijri/include/hijri-widgets.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hijri/include/hijri-widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-hijri/include/admin_form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-hijri/include/hijri-widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-hijri/include/shortcodes.php:32
- > PHP Warning
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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: islamic, class_date, gregorian, date, umm al-qura...
wp-hijri/main.php 92% from 13 tests
Analyzing the main PHP file in "WP-Hijri" version 1.5.2
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-hijri.php" instead of "main.php")
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,454 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 292 | 820 | 2,215 |
PO File | 1 | 195 | 412 | 239 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 59.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 5 | 7.25% |
▷ Public methods | 62 | 89.86% |
▷ Protected methods | 3 | 4.35% |
▷ Private methods | 4 | 5.80% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin