Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/enstract-seo/enstract-seo.php+33
Constant ENSTRACT_PLUGIN_PATH already defined
Server metrics [RAM: ▼1.18MB] [CPU: ▼49.57ms] Passed 4 tests
Analyzing server-side resources used by Enstract SEO
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.65 | 9.83 ▼32.33 |
Dashboard /wp-admin | 2.84 ▼0.51 | 11.10 ▼48.01 |
Posts /wp-admin/edit.php | 2.84 ▼0.52 | 13.04 ▼35.67 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 14.20 ▼82.28 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 12.49 ▼20.88 |
Server storage [IO: ▲19.47MB] [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: 424 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Enstract SEO
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.22 ▼1.53 | 1.57 ▼0.58 | 40.78 ▼6.70 |
Dashboard /wp-admin | 2,248 ▲57 | 5.86 ▲0.79 | 105.56 ▼1.23 | 59.86 ▲14.74 |
Posts /wp-admin/edit.php | 2,167 ▲78 | 2.06 ▲0.01 | 36.74 ▼4.93 | 33.33 ▼7.69 |
Add New Post /wp-admin/post-new.php | 1,712 ▲193 | 22.27 ▼0.78 | 632.01 ▼52.67 | 59.46 ▲10.12 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.12 ▼0.08 | 97.49 ▼3.07 | 73.02 ▲27.98 |
Uninstaller [IO: ▲19.47MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attentionZombie WordPress options were found after uninstall: 6 options
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/enstract-seo/enstract-seo.php+33
Constant ENSTRACT_PLUGIN_PATH already defined
- The plugin did not uninstall successfully, leaving 424 files (19.47MB) in the plugin directory
- (new file) app/Controllers/Enstract/Entities/EntitiesCore.php
- (new file) app/Controllers/Core/Menu/EnstractMenu.php
- (new file) app/Controllers/Core/Activator/Activator.php
- (new file) app/Controllers/Core/Deactivator/Deactivator.php
- (new file) app/Controllers/Enstract/Authentication/AuthRest.php
- (new file) app/Controllers/Enstract/Enstractor/Enstractor.php
- (new file) app/Controllers/Core/Enqueue/Enqueue.php
- (new file) app/Controllers/Core/WordpressRest/WordpressRest.php
- (new file) README.md
- (new file) app/Controllers/Enstract/Sidebar/SideBarDisplay.php
- ...
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/enstract-seo/resources/views/Sidebar/OnBoardingMetaBox.php
- > /wp-content/plugins/enstract-seo/resources/views/Sidebar/FreeUsePolicy.php
- > /wp-content/plugins/enstract-seo/resources/views/Sidebar/NewPost.php
- > /wp-content/plugins/enstract-seo/resources/views/Sidebar/LoggedoutMetaBox.php
- 161× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/enstract-seo/resources/views/Sidebar/MetaBox.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Handler/ElasticaHandler.php:36
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/enstract-seo/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/enstract-seo/vendor/monolog/monolog/src/Monolog/Formatter/LogmaticFormatter.php:19
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: google seo, theme, seo, php file, themes...
enstract-seo/enstract-seo.php 85% from 13 tests
The main PHP script in "Enstract SEO" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 290 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("5.8" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected121,471 lines of code in 372 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 12 | 0 | 3 | 52,765 |
JavaScript | 12 | 4,438 | 6,443 | 32,001 |
PHP | 273 | 4,426 | 11,380 | 19,193 |
JSON | 20 | 4 | 0 | 8,076 |
Markdown | 24 | 1,394 | 0 | 4,361 |
Vuejs Component | 17 | 263 | 33 | 2,456 |
CSS | 8 | 496 | 142 | 2,282 |
XSLT | 2 | 23 | 20 | 209 |
XML | 2 | 0 | 0 | 103 |
YAML | 1 | 4 | 0 | 16 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 33 | |
Traits | 8 | |
Classes | 211 | |
▷ Abstract classes | 11 | 5.21% |
▷ Concrete classes | 200 | 94.79% |
▷ Final classes | 12 | 6.00% |
Methods | 1,556 | |
▷ Static methods | 151 | 9.70% |
▷ Public methods | 1,185 | 76.16% |
▷ Protected methods | 176 | 11.31% |
▷ Private methods | 195 | 12.53% |
Functions | 175 | |
▷ Named functions | 56 | 32.00% |
▷ Anonymous functions | 119 | 68.00% |
Constants | 117 | |
▷ Global constants | 3 | 2.56% |
▷ Class constants | 114 | 97.44% |
▷ Public constants | 94 | 82.46% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.38MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 23.54KB | 9.70KB | ▼ 58.80% |
assets/banner-772x250-rtl.png | 23.54KB | 9.70KB | ▼ 58.80% |
assets/img/Step-1.png | 129.24KB | 52.95KB | ▼ 59.03% |
assets/screenshot-2.png | 36.90KB | 15.40KB | ▼ 58.27% |
assets/screenshot-1.png | 116.74KB | 45.16KB | ▼ 61.31% |