Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲2.98ms] Passed 4 tests
A check of server-side resources used by Premmerce SEO for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 44.54 ▲2.54 |
Dashboard /wp-admin | 3.97 ▲0.67 | 50.64 ▲1.99 |
Posts /wp-admin/edit.php | 4.02 ▲0.67 | 53.89 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 97.86 ▲2.35 |
Media Library /wp-admin/upload.php | 3.89 ▲0.67 | 39.67 ▲5.04 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.10 | 38.14 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 240 new files
Database: no new tables, 14 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
premmerce_seo_settings_markup_og |
premmerce_seo_db_version |
fs_accounts |
db_upgraded |
premmerce_seo_settings_image_alts |
premmerce_seo_settings_markup_ld |
premmerce_seo_settings_markup_tc |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Premmerce SEO for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲142 | 13.30 ▼0.92 | 1.85 ▼0.14 | 33.75 ▼11.90 |
Dashboard /wp-admin | 2,251 ▲62 | 5.84 ▲0.88 | 104.40 ▼19.80 | 44.05 ▼3.60 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.07 ▲0.02 | 40.92 ▲4.38 | 38.05 ▲6.39 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 18.37 ▼4.85 | 581.76 ▼78.46 | 54.60 ▼13.24 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.24 ▲0.06 | 94.86 ▼33.07 | 42.48 ▼0.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,084 | 1.72 | 26.42 | 24.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-seo-addon/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
- fs_active_plugins
- db_upgraded
- fs_accounts
- widget_theysaidso_widget
- premmerce_seo_db_version
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SeoAddon\\Core\\MetaEngines\\MetaEngineInterface' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaEngines/MetaDataEngine.php:5
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractArchiveStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/TermArchiveStrategy.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SeoAddon\\Core\\Config\\SettingsInterface' not found in wp-content/plugins/woo-seo-addon/src/Admin/Pages/Metadata.php:7
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractArchiveStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/PostTypeArchiveStrategy.php:11
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractArchiveStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/AuthorArchiveStrategy.php:11
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\SingleStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/MainSingleStrategy.php:5
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractArchiveStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/SearchArchiveStrategy.php:11
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/Base/AbstractArchiveStrategy.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Premmerce\\SeoAddon\\Core\\MetaEngines\\MetaEngineInterface' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaEngines/TwitterCard.php:5
- > PHP Fatal error
Uncaught Error: Class 'Premmerce\\SeoAddon\\Core\\MetaStorage\\Strategy\\Base\\AbstractArchiveStrategy' not found in wp-content/plugins/woo-seo-addon/src/Core/MetaStorage/Strategy/MainArchiveStrategy.php:6
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: twitter cards, schemaorg, yoast, opengraph, woocommerce seo
woo-seo-addon/premmerce-seo-addon.php 85% from 13 tests
"Premmerce SEO for WooCommerce" version 2.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-seo-addon.php" instead of "premmerce-seo-addon.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "3.0")
Code Analysis 97% from 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
There were no executable files found in this plugin36,126 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 8,559 | 18,476 | 35,316 |
Markdown | 2 | 121 | 0 | 284 |
PO File | 2 | 120 | 173 | 259 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 2 | 0 | 0 | 60 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 51.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 86 | |
▷ Abstract classes | 4 | 4.65% |
▷ Concrete classes | 82 | 95.35% |
▷ Final classes | 0 | 0.00% |
Methods | 1,513 | |
▷ Static methods | 223 | 14.74% |
▷ Public methods | 1,112 | 73.50% |
▷ Protected methods | 21 | 1.39% |
▷ Private methods | 380 | 25.12% |
Functions | 109 | |
▷ Named functions | 100 | 91.74% |
▷ Anonymous functions | 9 | 8.26% |
Constants | 151 | |
▷ Global constants | 98 | 64.90% |
▷ Class constants | 53 | 35.10% |
▷ Public constants | 53 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |