Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.93ms] Passed 4 tests
An overview of server-side resources used by Sahih al Bukhari Hadiths
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 24.93 ▼18.01 |
Dashboard /wp-admin | 3.33 ▼0.02 | 56.83 ▼10.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.79 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.48 ▼9.21 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 44.21 ▼0.13 |
Server storage [IO: ▲13.24MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 124 new files
Database: 1 new table, 10 new options
New tables |
---|
bukhari_chapters |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
color_hadith_ref |
db_upgraded |
background_hadith_ref |
can_compress_scripts |
widget_theysaidso_widget |
background_hadith_bloc |
border_hadith_bloc |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sahih al Bukhari Hadiths
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.42 ▼1.15 | 8.74 ▲7.06 | 40.86 ▼2.58 |
Dashboard /wp-admin | 2,191 ▲14 | 5.55 ▼0.13 | 91.09 ▲2.87 | 82.40 ▲40.66 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▼0.03 | 36.39 ▼2.14 | 37.84 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,689 ▲163 | 21.84 ▼1.38 | 769.93 ▲67.23 | 56.67 ▲4.69 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.12 ▼0.09 | 98.16 ▼14.58 | 71.70 ▲25.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/sahih-al-bukhari-hadiths/template/img/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/inc/hadith_style.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/template/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/data/chapters/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/template/js/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/admin/js/jscolor/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/admin/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/admin/js/index.php
- > /wp-content/plugins/sahih-al-bukhari-hadiths/sahih-al-bukhari-hadiths.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sahih-al-bukhari-hadiths/admin/hadith-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/sahih-al-bukhari-hadiths/template/render_hadith.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires php: Version format is invalid
sahih-al-bukhari-hadiths/sahih-al-bukhari-hadiths.php 92% from 13 tests
The main PHP file in "Sahih al Bukhari Hadiths" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 360 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin81,758 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 98 | 38 | 0 | 80,337 |
JavaScript | 2 | 144 | 38 | 842 |
PHP | 8 | 163 | 17 | 579 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon_hadith.png | 1.91KB | 1.49KB | ▼ 21.83% |
admin/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
admin/js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |