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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.84MB] [CPU: ▼173.49ms] Passed 4 tests
An overview of server-side resources used by Kahanit WP FW
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲1.29 | 48.04 ▲19.79 |
Dashboard /wp-admin | 4.24 ▲1.19 | 59.22 ▲12.31 |
Posts /wp-admin/edit.php | 4.29 ▲1.19 | 56.86 ▲7.14 |
Add New Post /wp-admin/post-new.php | 5.23 ▼0.21 | 63.91 ▼724.84 |
Media Library /wp-admin/upload.php | 4.19 ▲1.18 | 44.68 ▲11.42 |
Server storage [IO: ▲3.98MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 554 new files
Database: 7 new tables, 2 new options
New tables |
---|
wp_kwf_options_pages |
wp_kwf_taxonomies |
wp_kwf_forms |
wp_kwf_types |
wp_kwf_sidebars |
wp_kwf_form_fields |
wp_kwf_metaboxes |
New WordPress options |
---|
kwf_db_version |
kwf_version |
Browser metrics Passed 4 tests
Kahanit WP FW: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲129 | 16.37 ▲0.84 | 10.43 ▼0.04 | 51.01 ▼2.92 |
Dashboard /wp-admin | 2,984 ▲47 | 5.90 ▼0.04 | 143.66 ▼21.24 | 148.46 ▲20.98 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.59 ▼0.12 | 62.81 ▼6.10 | 105.43 ▲6.52 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 18.35 ▼0.39 | 398.57 ▼17.79 | 131.77 ▲18.52 |
Media Library /wp-admin/upload.php | 1,843 ▲36 | 5.02 ▼0.02 | 143.56 ▼17.52 | 151.40 ▲28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 does not fully uninstall, leaving 7 tables in the database
- wp_kwf_form_fields
- wp_kwf_forms
- wp_kwf_sidebars
- wp_kwf_taxonomies
- wp_kwf_types
- wp_kwf_metaboxes
- wp_kwf_options_pages
- The uninstall procedure has failed, leaving 2 options in the database
- kwf_version
- kwf_db_version
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kahanit-wp-fw/public/js/options-pages/ext-init.php
- > /wp-content/plugins/kahanit-wp-fw/admin/views/manage/view-manage.php
- > /wp-content/plugins/kahanit-wp-fw/public/js/manage/ext-init.php
- > /wp-content/plugins/kahanit-wp-fw/kahanit-wp-fw.php
- > /wp-content/plugins/kahanit-wp-fw/public/js/metaboxes/ext-init.php
- 220× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Db.php' (include_path='.:/usr/share/php') in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Table/Row/Abstract.php on line 26
- > PHP Warning
require_once(Zend/Db/Statement/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Statement/Mysqli/Exception.php on line 26
- > PHP Warning
require_once(Zend/Json/Server/Response.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Json/Server/Response/Http.php on line 25
- > PHP Warning
require_once(Zend/Db.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Table/Row/Abstract.php on line 26
- > PHP Warning
require_once(Zend/Db/Adapter/Pdo/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Adapter/Pdo/Pgsql.php on line 27
- > PHP Warning
require_once(Zend/Db/Adapter/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Adapter/Mysqli.php on line 27
- > PHP Warning
require_once(Zend/Db/Statement/Pdo.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Statement/Pdo/Ibm.php on line 26
- > PHP Warning
require_once(Zend/Db/Table/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Table/Rowset/Exception.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Db/Adapter/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Adapter/Oracle.php on line 26
- > PHP Warning
require_once(Zend/Db/Adapter/Pdo/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/kahanit-wp-fw/library/Zend/Db/Adapter/Pdo/Sqlite.php on line 27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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:
- Screenshots: Please add images for these screenshots: #1 (Post types list), #2 (Edit post type), #3 (Taxonomies list), #4 (Edit taxonomies), #5 (Sidebars list), #6 (Edit sidebar), #7 (Options pages list), #8 (Edit options page), #9 (Metaboxes list), #10 (Edit metabox), #11 (Forms list), #12 (Edit forms)
kahanit-wp-fw/kahanit-wp-fw.php Passed 13 tests
The principal PHP file in "Kahanit WP FW" v. 1.0.3 is loaded by WordPress automatically on each request
112 characters long description:
Easily create post types, taxonomies, sidebars, metaboxes, options pages, forms for metaboxes and options pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin27,124 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 4,516 | 18,471 | 20,139 |
CSS | 2 | 67 | 1,973 | 6,720 |
JavaScript | 4 | 67 | 14 | 265 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 22.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 140 | |
▷ Abstract classes | 17 | 12.14% |
▷ Concrete classes | 123 | 87.86% |
▷ Final classes | 0 | 0.00% |
Methods | 1,581 | |
▷ Static methods | 92 | 5.82% |
▷ Public methods | 1,375 | 86.97% |
▷ Protected methods | 200 | 12.65% |
▷ Private methods | 6 | 0.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 205 | |
▷ Global constants | 12 | 5.85% |
▷ Class constants | 193 | 94.15% |
▷ Public constants | 193 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 22.05KB | 11.95KB | ▼ 45.80% |
public/js/extjs/resources/themes/images/gray/datepicker/datepicker-footer-bg.png | 0.32KB | 0.23KB | ▼ 28.96% |
screenshot-10.png | 22.41KB | 10.35KB | ▼ 53.81% |
public/js/extjs/resources/themes/images/gray/slider/slider-v-thumb.png | 0.62KB | 0.50KB | ▼ 18.35% |
screenshot-5.png | 12.50KB | 6.09KB | ▼ 51.25% |