Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_seo_activation() should not be called statically
Server metrics [RAM: ▼0.98MB] [CPU: ▼35.14ms] Passed 4 tests
An overview of server-side resources used by SEO Custom Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▼0.55 | 21.65 ▼18.72 |
Dashboard /wp-admin | 3.06 ▼0.24 | 24.07 ▼24.22 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 25.32 ▼19.01 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 22.73 ▼78.60 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 24.43 ▼10.55 |
SEO Custom Fields /wp-admin/options-general.php?page=metaseo_settings_options | 3.06 | 23.02 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SEO Custom Fields
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.68 ▼0.90 | 2.02 ▼0.96 | 32.13 ▼14.51 |
Dashboard /wp-admin | 2,214 ▲23 | 5.86 ▲0.95 | 106.79 ▲5.07 | 41.41 ▼4.59 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▲0.01 | 40.49 ▲6.25 | 37.66 ▲5.72 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 23.42 ▲5.92 | 605.05 ▼104.13 | 50.66 ▼36.58 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.20 ▼0.01 | 94.71 ▼8.83 | 45.06 ▲0.28 |
SEO Custom Fields /wp-admin/options-general.php?page=metaseo_settings_options | 806 | 2.06 | 24.27 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_add_menu_seo() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_add_menu_seo() should not be called statically
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_metaseo_admin_settings() should not be called statically
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_seo_plugin_scrit() should not be called statically
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method scfClassInitialization::scf_add_pluginpage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method scfClassInitialization::scf_number_symbol_title() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Notice in wp-content/plugins/seo-custom-fields/init.php+47
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method scfClassInitialization::scf_number_symbol_description() should not be called statically
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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant SCF_PLAGIN_PATH - assumed 'SCF_PLAGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-custom-fields/init.php on line 3
- > PHP Warning
include_once(): Failed opening 'SCF_PLAGIN_PATHgeneral.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/seo-custom-fields/init.php on line 3
- > PHP Warning
include_once(SCF_PLAGIN_PATHgeneral.php): failed to open stream: No such file or directory in wp-content/plugins/seo-custom-fields/init.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-custom-fields/index.php:32
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=metaseo_settings_options
- > Javascript (severe) in unknown
/wp-content/plugins/seo-custom-fields/view/source/js/bootstrap.min.js 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #3 in seo-custom-fields/assets to your readme.txt
seo-custom-fields/index.php 85% from 13 tests
"SEO Custom Fields" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-custom-fields.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin9,770 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 7 | 24 | 7,328 |
JavaScript | 3 | 582 | 199 | 1,602 |
PHP | 4 | 78 | 22 | 552 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected