Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.02ms] Passed 4 tests
Server-side resources used by Freq Func COLLECTION
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.50 ▼3.13 |
Dashboard /wp-admin | 3.52 ▲0.21 | 58.55 ▲9.45 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 53.15 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.36 ▼12.46 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.32 ▲7.03 |
リソース /wp-admin/admin.php?page=ffc-config-resource | 3.48 | 38.30 |
ウィジェット /wp-admin/admin.php?page=ffc-config-widget | 3.49 | 46.56 |
メニューページ /wp-admin/admin.php?page=ffc-config-menupage | 3.62 | 41.32 |
基本 /wp-admin/admin.php?page=ffc-config-basic | 3.48 | 42.63 |
カスタム投稿タイプ /wp-admin/admin.php?page=ffc-config-posttype | 3.68 | 41.54 |
定数 /wp-admin/admin.php?page=ffc-config-const | 3.45 | 40.31 |
ログイン /wp-admin/admin.php?page=ffc-config-login | 3.48 | 36.84 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 146 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
ffc-config-version |
Browser metrics Passed 4 tests
A check of browser resources used by Freq Func COLLECTION
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲233 | 14.48 ▲0.11 | 1.88 ▼0.03 | 39.37 ▲0.76 |
Dashboard /wp-admin | 2,372 ▲192 | 6.11 ▲0.41 | 123.45 ▲31.38 | 53.18 ▲12.78 |
Posts /wp-admin/edit.php | 2,306 ▲206 | 3.27 ▲1.33 | 53.65 ▲13.94 | 44.99 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.71 ▲0.59 | 647.12 ▼18.04 | 35.63 ▼19.69 |
Media Library /wp-admin/upload.php | 1,440 ▲46 | 4.16 ▼0.02 | 84.47 ▼19.29 | 51.36 ▲7.04 |
リソース /wp-admin/admin.php?page=ffc-config-resource | 1,082 | 3.08 | 43.20 | 80.53 |
ウィジェット /wp-admin/admin.php?page=ffc-config-widget | 1,424 | 3.14 | 38.53 | 58.50 |
メニューページ /wp-admin/admin.php?page=ffc-config-menupage | 1,073 | 3.08 | 42.73 | 57.86 |
基本 /wp-admin/admin.php?page=ffc-config-basic | 1,335 | 3.08 | 40.81 | 84.98 |
カスタム投稿タイプ /wp-admin/admin.php?page=ffc-config-posttype | 1,085 | 3.29 | 40.90 | 60.75 |
定数 /wp-admin/admin.php?page=ffc-config-const | 1,106 | 3.38 | 40.84 | 48.29 |
ログイン /wp-admin/admin.php?page=ffc-config-login | 1,380 | 3.74 | 55.97 | 68.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- ffc-config-version
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/freq-func-collection/addons/field/view/radio.php
- > /wp-content/plugins/freq-func-collection/addons/field/view/checkbox.php
- > /wp-content/plugins/freq-func-collection/addons/field/view/group.php
- 191× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'FFCOLLECTION_PLUGIN_DIR_PATHFFCOLLECTION_ADDONS_DIR_NAME/field/type/FfcFieldType.php' (include_path='.:/usr/share/php') in wp-content/plugins/freq-func-collection/addons/field/type/FfcFieldCheckbox.php on line 5
- > PHP Notice
Undefined variable: value in wp-content/plugins/freq-func-collection/config/view/posttype.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/freq-func-collection/config/view/example/menupage/image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/freq-func-collection/config/view/example/taxonomy/date.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/freq-func-collection/addons/field/view/number.php:3
- > PHP Warning
Use of undefined constant FFCOLLECTION_ADDONS_DIR_NAME - assumed 'FFCOLLECTION_ADDONS_DIR_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/freq-func-collection/addons/field/type/FfcFieldCheckbox.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'FfcBaseClass' not found in wp-content/plugins/freq-func-collection/addons/widget/FfcWidget.php:9
- > PHP Fatal error
Uncaught Error: Class 'FfcBaseClass' not found in wp-content/plugins/freq-func-collection/addons/field/type/FfcFieldType.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_ffc_menupage_options() in wp-content/plugins/freq-func-collection/config/view/example/menupage/radio.php:2
- > PHP Warning
Use of undefined constant FFCOLLECTION_PLUGIN_DIR_PATH - assumed 'FFCOLLECTION_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/freq-func-collection/addons/field/type/FfcFieldColor.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: custom fields, custom post, login page, menu page
freq-func-collection/freq-func-collection.php Passed 13 tests
The entry point to "Freq Func COLLECTION" version 1.5.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
サイト構築時によく行われるカスタマイズを機能としてまとめた機能集です。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,741 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 829 | 1,336 | 7,054 |
JavaScript | 19 | 72 | 78 | 1,242 |
CSS | 8 | 15 | 0 | 400 |
PO File | 1 | 16 | 21 | 43 |
JSON | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 3 | 7.89% |
▷ Concrete classes | 35 | 92.11% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 121 | 53.54% |
▷ Protected methods | 105 | 46.46% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 15 | 71.43% |
▷ Anonymous functions | 6 | 28.57% |
Constants | 52 | |
▷ Global constants | 7 | 13.46% |
▷ Class constants | 45 | 86.54% |
▷ Public constants | 45 | 100.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
No PNG files were detected