Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-content/plugins/datacake-core/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php+261
The "Doctrine\Common\Inflector\Inflector::pluralize" method is deprecated and will be dropped in doctrine/inflector 2.0. Please update to the new Inflector API.
Server metrics [RAM: ▲2.45MB] [CPU: ▲11.96ms] Passed 4 tests
Analyzing server-side resources used by Datacake Core
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.88 ▲2.41 | 61.12 ▲20.60 |
Dashboard /wp-admin | 5.77 ▲2.46 | 60.40 ▲15.06 |
Posts /wp-admin/edit.php | 5.82 ▲2.46 | 58.62 ▲9.95 |
Add New Post /wp-admin/post-new.php | 8.37 ▲2.48 | 108.80 ▲2.21 |
Media Library /wp-admin/upload.php | 5.69 ▲2.46 | 57.58 ▲24.97 |
Categorias /wp-admin/edit-tags.php?taxonomy=isp_canais_category&post_type=isp_canais | 5.69 | 47.96 |
DK Planos /wp-admin/edit.php?post_type=isp_planos | 5.73 | 49.92 |
Tags /wp-admin/edit-tags.php?taxonomy=isp_canais_tag&post_type=isp_canais | 5.68 | 44.22 |
Nova Cidade /wp-admin/admin.php?page=isp_city_edit | 5.57 | 44.17 |
Adicionar Novo Canal /wp-admin/post-new.php?post_type=isp_canais | 5.82 | 63.77 |
Adicionar Novo Plano /wp-admin/post-new.php?post_type=isp_planos | 6.18 | 111.36 |
Novo Redirecionamento /wp-admin/admin.php?page=isp_redir_edit | 6.74 | 49.41 |
Cidades /wp-admin/admin.php?page=isp_city | 6.70 | 49.77 |
Categorias /wp-admin/edit-tags.php?taxonomy=isp_planos_category&post_type=isp_planos | 5.69 | 46.67 |
Redirecionamentos /wp-admin/admin.php?page=isp_redir | 6.70 | 50.82 |
Server storage [IO: ▲5.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,706 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_isp_redirect_cities |
wp_isp_cities |
wp_isp_redirects |
New WordPress options |
---|
theysaidso_admin_options |
datacake-isp-db-version |
db_upgraded |
widget_theysaidso_widget |
widget_lpnet_cidades |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Datacake Core
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,029 ▲283 | 13.60 ▼0.78 | 5.98 ▲4.17 | 43.94 ▼1.95 |
Dashboard /wp-admin | 2,321 ▲133 | 4.88 ▼0.94 | 106.53 ▲6.70 | 39.54 ▼1.97 |
Posts /wp-admin/edit.php | 2,207 ▲115 | 2.03 ▲0.04 | 38.09 ▼3.20 | 33.21 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,615 ▲82 | 23.01 ▼0.09 | 650.66 ▲23.46 | 65.58 ▼9.08 |
Media Library /wp-admin/upload.php | 1,500 ▲112 | 4.24 ▲0.02 | 98.88 ▲0.61 | 44.83 ▲3.61 |
Categorias /wp-admin/edit-tags.php?taxonomy=isp_canais_category&post_type=isp_canais | 1,377 | 2.16 | 26.58 | 28.18 |
DK Planos /wp-admin/edit.php?post_type=isp_planos | 1,181 | 1.98 | 32.06 | 30.43 |
Tags /wp-admin/edit-tags.php?taxonomy=isp_canais_tag&post_type=isp_canais | 1,349 | 2.18 | 28.63 | 26.39 |
Nova Cidade /wp-admin/admin.php?page=isp_city_edit | 1,023 | 1.81 | 24.60 | 23.56 |
Adicionar Novo Canal /wp-admin/post-new.php?post_type=isp_canais | 2,631 | 7.88 | 172.30 | 69.19 |
Adicionar Novo Plano /wp-admin/post-new.php?post_type=isp_planos | 2,866 | 8.10 | 196.13 | 70.66 |
Novo Redirecionamento /wp-admin/admin.php?page=isp_redir_edit | 965 | 1.76 | 24.65 | 23.78 |
Cidades /wp-admin/admin.php?page=isp_city | 1,194 | 1.71 | 24.33 | 32.20 |
Categorias /wp-admin/edit-tags.php?taxonomy=isp_planos_category&post_type=isp_planos | 1,374 | 2.28 | 26.89 | 27.08 |
Redirecionamentos /wp-admin/admin.php?page=isp_redir | 1,073 | 1.76 | 25.56 | 27.53 |
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
- Zombie tables detected upon uninstall: 3 tables
- wp_isp_cities
- wp_isp_redirects
- wp_isp_redirect_cities
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_lpnet_cidades
- widget_recent-comments
- datacake-isp-db-version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=isp_city_edit
- > Notice in wp-content/plugins/datacake-core/src/Admin/Crud/CityCrud.php+175
Trying to get property 'is_neighborhood' of non-object
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=isp_redir
- > User deprecated in wp-content/plugins/datacake-core/vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php+261
The "Doctrine\Common\Inflector\Inflector::pluralize" method is deprecated and will be dropped in doctrine/inflector 2.0. Please update to the new Inflector API.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/datacake-core/src/Pub/partials/datacake_core-public-display.php
- > /wp-content/plugins/datacake-core/src/Admin/partials/datacake_core-admin-display.php
- > /wp-content/plugins/datacake-core/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- > /wp-content/plugins/datacake-core/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
- > /wp-content/plugins/datacake-core/vendor/illuminate/pagination/resources/views/simple-default.blade.php
- > /wp-content/plugins/datacake-core/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/datacake-core/vendor/illuminate/pagination/resources/views/default.blade.php
- > /wp-content/plugins/datacake-core/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
- 394× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined index: argv in wp-content/plugins/datacake-core/vendor/symfony/translation/Resources/bin/translation-status.php on line 47
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/datacake-core/vendor/illuminate/contracts/Support/MessageBag.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Database\\ConnectionResolverInterface' not found in wp-content/plugins/datacake-core/vendor/illuminate/database/DatabaseManager.php:15
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Events\\MigrationEvent' not found in wp-content/plugins/datacake-core/vendor/illuminate/database/Events/MigrationEnded.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/datacake-core/vendor/guzzlehttp/psr7/src/NoSeekStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/datacake-core/vendor/symfony/translation/Loader/IcuResFileLoader.php:24
- > PHP Fatal error
Trait 'Illuminate\\Support\\Traits\\ForwardsCalls' not found in wp-content/plugins/datacake-core/vendor/illuminate/database/Eloquent/Relations/Relation.php on line 17
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/datacake-core/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/datacake-core/vendor/symfony/translation/Loader/PhpFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/datacake-core/vendor/php-http/guzzle6-adapter/src/Promise.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
datacake-core/datacake_core.php 77% from 13 tests
This is the main PHP file of "Datacake Core" version 1.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("datacake-core.php" instead of "datacake_core.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/datacake-core/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,375 | 16,244 | 55,622 | 88,648 |
Markdown | 37 | 1,692 | 0 | 4,654 |
JSON | 30 | 0 | 0 | 3,145 |
XSD | 3 | 92 | 48 | 2,803 |
JavaScript | 2 | 38 | 15 | 155 |
Blade | 5 | 11 | 19 | 136 |
reStructuredText | 1 | 74 | 78 | 74 |
XML | 2 | 0 | 0 | 61 |
CSS | 3 | 0 | 15 | 24 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 135 | |
Interfaces | 151 | |
Traits | 49 | |
Classes | 502 | |
▷ Abstract classes | 25 | 4.98% |
▷ Concrete classes | 477 | 95.02% |
▷ Final classes | 80 | 16.77% |
Methods | 5,819 | |
▷ Static methods | 839 | 14.42% |
▷ Public methods | 4,621 | 79.41% |
▷ Protected methods | 931 | 16.00% |
▷ Private methods | 267 | 4.59% |
Functions | 738 | |
▷ Named functions | 197 | 26.69% |
▷ Anonymous functions | 541 | 73.31% |
Constants | 293 | |
▷ Global constants | 50 | 17.06% |
▷ Class constants | 243 | 82.94% |
▷ Public constants | 242 | 99.59% |
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
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 |
src/Pub/images/icon_internet.png | 1.95KB | 1.23KB | ▼ 36.92% |
src/Pub/images/tv-icon.png | 17.59KB | 7.78KB | ▼ 55.77% |