Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.99ms] Passed 4 tests
Server-side resources used by Quran Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.66 ▲1.12 |
Dashboard /wp-admin | 3.39 ▲0.09 | 43.40 ▼4.59 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.10 ▲3.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.42 ▼9.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.15 ▲1.47 |
Server storage [IO: ▲4.67MB] [DB: ▲3.11MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_edc_en_quran |
wp_edc_suraames |
wp_edc_quran |
New WordPress options |
---|
edc_quran_shortcode_template |
theysaidso_admin_options |
edc_quran_shortcode_template_custom |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
edc_quran_shortcode_version |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Quran Shortcode: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.76 ▲0.36 | 2.04 ▲0.46 | 55.18 ▲17.47 |
Dashboard /wp-admin | 2,212 ▲35 | 5.58 ▼0.09 | 82.02 ▼5.38 | 83.42 ▲38.84 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.97 ▼0.02 | 35.83 ▼2.68 | 33.65 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.57 ▲0.68 | 718.46 ▲60.06 | 50.98 ▼3.31 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.23 ▼0.06 | 97.30 ▼18.05 | 79.24 ▲31.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quran-shortcode/assets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/quran-shortcode/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quran-shortcode/option_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quran-shortcode/button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quran-shortcode/template.php:77
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Button), #2 (Searching), #3 (View in post), #4 (Setting)
quran-shortcode/index.php 85% from 13 tests
The main PHP file in "Quran Shortcode" ver. 1.4 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 167 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quran-shortcode.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin1,174 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 62 | 17 | 511 |
CSS | 1 | 57 | 6 | 378 |
JavaScript | 3 | 45 | 53 | 285 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
49 PNG files occupy 1.39MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/quranboder_07.png | 4.07KB | 1.96KB | ▼ 51.89% |
css/images/temp4_08.png | 9.55KB | 5.71KB | ▼ 40.19% |
css/images/temp1_.png | 100.68KB | 34.16KB | ▼ 66.07% |
css/images/temp4_07.png | 3.87KB | 2.10KB | ▼ 45.86% |
css/images/temp3_05.png | 14.01KB | 5.36KB | ▼ 61.73% |