Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.83ms] Passed 4 tests
Server-side resources used by Islamic Archive For Prayer In Islam
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.69 ▲5.52 |
Dashboard /wp-admin | 3.41 ▲0.10 | 79.36 ▲27.53 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.99 ▼2.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.54 ▼19.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.96 ▲0.83 |
Islamic Content Archive Prayer in islam /wp-admin/options-general.php?page=islamic_content_archive_prayer_in_islam | 3.25 | 33.90 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_opicpii_categories |
New WordPress options |
---|
theysaidso_admin_options |
opicpii_cronjobtime |
can_compress_scripts |
opicpii_version |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
opicpii_source |
opicpii_language |
Browser metrics Passed 4 tests
Checking browser requirements for Islamic Archive For Prayer In Islam
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 13.29 ▼1.09 | 1.87 ▲0.15 | 44.63 ▲4.97 |
Dashboard /wp-admin | 2,214 ▲32 | 4.88 ▼1.00 | 102.69 ▼0.15 | 42.43 ▼1.72 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.05 ▲0.03 | 35.50 ▼5.93 | 38.93 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.01 ▼0.25 | 671.83 ▲66.50 | 60.48 ▲10.48 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.21 ▼0.03 | 95.42 ▼2.68 | 41.84 ▼1.20 |
Islamic Content Archive Prayer in islam /wp-admin/options-general.php?page=islamic_content_archive_prayer_in_islam | 818 | 2.03 | 25.05 | 33.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Zombie tables were found after uninstall: 1 table
- wp_opicpii_categories
- The uninstall procedure has failed, leaving 10 options in the database
- opicpii_language
- opicpii_cronjobtime
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- opicpii_version
- widget_recent-posts
- opicpii_source
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant PIILIB - assumed 'PIILIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/language_pii_controller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/islamic-archive-for-prayer-in-islam/lib/opic_pii_cronjob.php:14
- > PHP Warning
include_once(OPICPII_PLUGIN_PATHPIILIBPIIDSpii_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2
- > PHP Warning
include_once(OPICPII_PLUGIN_PATHPIILIBPIIDSpii_function.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/categories_pii_controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'app_pii_controlers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/controllers/main_pii_controller.php:5
- > PHP Warning
include_once(): Failed opening 'OPICPII_PLUGIN_PATHPIILIBPIIDSpii_function.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'app_pii_helpers' not found in wp-content/plugins/islamic-archive-for-prayer-in-islam/lib/html_pii_helper.php:5
- > PHP Warning
include_once(): Failed opening 'OPICPII_PLUGIN_PATHPIILIBPIIDSpii_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-archive-for-prayer-in-islam/load.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add a description for screenshot #2 in islamic-archive-for-prayer-in-islam/assets to your readme.txt
islamic-archive-for-prayer-in-islam/index.php 85% from 13 tests
The main PHP file in "Islamic Archive For Prayer In Islam" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("islamic-archive-for-prayer-in-islam.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,216 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 252 | 108 | 1,156 |
CSS | 1 | 2 | 0 | 48 |
JavaScript | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 41 | 80.39% |
▷ Protected methods | 4 | 7.84% |
▷ Private methods | 6 | 11.76% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 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
19 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/flags/ben.png | 0.55KB | 0.64KB | 0.00% |
style/images/flags/tam.png | 0.63KB | 1.03KB | 0.00% |
screenshot-2.png | 42.87KB | 15.67KB | ▼ 63.46% |
style/images/flags/sin.png | 1.36KB | 0.84KB | ▼ 38.04% |
style/images/flags/tel.png | 0.63KB | 1.03KB | 0.00% |