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: ▼2.39ms] Passed 4 tests
This is a short check of server-side resources used by Islamic Content Archive For The Faith
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.74 ▲0.34 |
Dashboard /wp-admin | 3.41 ▲0.11 | 68.60 ▲21.58 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.94 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.93 ▼8.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.90 ▼1.68 |
Islamic Content Archive For The Faith /wp-admin/options-general.php?page=islamic_content_archive_for_the_faith | 3.25 | 31.12 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_opictf_categories |
New WordPress options |
---|
opictf_source |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
opictf_language |
widget_theysaidso_widget |
opictf_version |
opictf_cronjobtime |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Islamic Content Archive For The Faith
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.25 ▼0.27 | 1.88 ▲0.27 | 45.91 ▲1.87 |
Dashboard /wp-admin | 2,200 ▲23 | 5.60 ▼0.06 | 90.31 ▼7.06 | 40.97 ▼3.35 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▼0.01 | 38.12 ▲0.51 | 37.91 ▲3.90 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.30 ▼0.49 | 641.79 ▼41.94 | 55.22 ▲1.69 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.20 ▼0.00 | 94.76 ▼15.46 | 41.61 ▼4.28 |
Islamic Content Archive For The Faith /wp-admin/options-general.php?page=islamic_content_archive_for_the_faith | 824 | 2.03 | 24.41 | 24.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_opictf_categories
- This plugin did not uninstall successfully, leaving 10 options in the database
- opictf_version
- opictf_source
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- opictf_language
- opictf_cronjobtime
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/islamic-content-archive-for-the-faith/lib/tf_pluginlifeciclye.php:28
- > PHP Warning
include_once(): Failed opening 'OPICTF_PLUGIN_PATHTFLIBTFDStf_pluginlifeciclye.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
- > PHP Warning
Use of undefined constant TFDS - assumed 'TFDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function opictf_icon_logo() in wp-content/plugins/islamic-content-archive-for-the-faith/views/language.php:4
- > PHP Fatal error
Uncaught Error: Class 'app_tf_models' not found in wp-content/plugins/islamic-content-archive-for-the-faith/lib/app_tf_cronjob.php:3
- > PHP Warning
Use of undefined constant TFDS - assumed 'TFDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'app_tf_helpers' not found in wp-content/plugins/islamic-content-archive-for-the-faith/lib/html_tf_helper.php:5
- > PHP Fatal error
Uncaught Error: Class 'app_tf_controlers' not found in wp-content/plugins/islamic-content-archive-for-the-faith/controllers/categories_tf_controller.php:5
- > PHP Warning
include_once(OPICTF_PLUGIN_PATHTFLIBTFDStf_pluginlifeciclye.php): failed to open stream: No such file or directory in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
- > PHP Warning
Use of undefined constant OPICTF_PLUGIN_PATH - assumed 'OPICTF_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/islamic-content-archive-for-the-faith/load.php on line 2
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Screenshots: A description for screenshot #2 is missing in islamic-content-archive-for-the-faith/assets to your readme.txt
islamic-content-archive-for-the-faith/index.php 92% from 13 tests
"Islamic Content Archive For The Faith" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("islamic-content-archive-for-the-faith.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,194 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 258 | 114 | 1,134 |
CSS | 1 | 2 | 0 | 48 |
JavaScript | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 26 | |
▷ Named functions | 26 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
19 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/images/flags/rus.png | 0.17KB | 0.17KB | 0.00% |
style/images/flags/ara.png | 1.41KB | 0.93KB | ▼ 33.87% |
style/images/flags/tag.png | 0.67KB | 1.08KB | 0.00% |
style/images/flags/eng.png | 0.40KB | 0.43KB | 0.00% |
style/images/flags/rom.png | 0.28KB | 0.31KB | 0.00% |