Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
Server metrics [RAM: ▼1.76MB] [CPU: ▼347.71ms] Passed 4 tests
A check of server-side resources used by SEO Consultant
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.90 | 8.00 ▼51.63 |
Dashboard /wp-admin | 2.63 ▼0.78 | 5.44 ▼34.67 |
Posts /wp-admin/edit.php | 2.63 ▼1.01 | 13.12 ▼50.70 |
Add New Post /wp-admin/post-new.php | 2.63 ▼4.34 | 6.27 ▼1,253.83 |
Media Library /wp-admin/upload.php | 2.63 ▼0.66 | 10.15 ▼23.14 |
SEO Consultant /wp-admin/options-general.php?page=seocons_settings | 2.63 | 7.60 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_seo_hostlog |
wp_seo_hostindex |
New WordPress options |
---|
seo_consultant_current_version |
Browser metrics Passed 4 tests
A check of browser resources used by SEO Consultant
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 6,451 ▲2,697 | 20.49 ▲4.89 | 6.06 ▲0.46 | 2.84 ▲0.17 |
Dashboard /wp-admin | 5,541 ▲2,687 | 7.84 ▲1.70 | 178.83 ▲47.58 | 184.71 ▲28.63 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.01 | 62.94 ▼4.69 | 143.48 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,697 ▼20 | 20.68 ▼0.34 | 417.36 ▼11.16 | 161.52 ▲5.79 |
Media Library /wp-admin/upload.php | 1,707 ▲6 | 5.51 ▲0.06 | 139.01 ▼4.14 | 184.10 ▼1.51 |
SEO Consultant /wp-admin/options-general.php?page=seocons_settings | 1,052 | 2.41 | 54.80 | 115.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_seo_hostindex
- wp_seo_hostlog
- Zombie WordPress options were found after uninstall: 1 option
- seo_consultant_current_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=seocons_settings
- > Deprecated in wp-content/plugins/seo-consultant/app/modules/FPDF.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=seocons_settings
- > Notice in wp-content/plugins/seo-consultant/app/modules/Logger.php+22
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-consultant/plugin.php:21
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: seo monitor, seo analysis, backlinks, seo
seo-consultant/plugin.php 85% from 13 tests
The principal PHP file in "SEO Consultant" v. 1.1.3 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-consultant.php" instead of "plugin.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,701 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 535 | 537 | 3,223 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 11 | 72 | 342 | 344 |
Sass | 3 | 46 | 3 | 286 |
CSS | 2 | 4 | 4 | 190 |
PO File | 1 | 1 | 1 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 310.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 20 | 9.95% |
▷ Public methods | 155 | 77.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 46 | 22.89% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected