Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/String.php+529
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.68MB] [CPU: ▼48.68ms] Passed 4 tests
Analyzing server-side resources used by Suscriptflech
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 7.84 ▼30.35 |
Dashboard /wp-admin | 2.32 ▼0.98 | 6.79 ▼42.81 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 6.67 ▼42.24 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 7.44 ▼79.33 |
Media Library /wp-admin/upload.php | 2.32 ▼0.90 | 6.84 ▼27.07 |
Suscriptores /wp-admin/edit.php?post_type=emails | 2.33 | 7.14 |
Suscriptflech /wp-admin/options-general.php?page=suscriptflech-settings-settings | 2.33 | 6.39 |
Añadir suscriptor /wp-admin/post-new.php?post_type=emails | 2.33 | 6.15 |
Enviar emails /wp-admin/edit.php?post_type=emails&page=envioemails | 2.33 | 7.69 |
Server storage [IO: ▲4.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 348 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_widget-suscriptflech |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Suscriptflech
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,058 ▲297 | 14.83 ▲0.46 | 5.59 ▲3.96 | 41.94 ▲2.81 |
Dashboard /wp-admin | 2,375 ▲201 | 6.15 ▲0.48 | 114.84 ▲27.03 | 40.72 ▼4.65 |
Posts /wp-admin/edit.php | 2,309 ▲209 | 3.38 ▲1.31 | 44.41 ▲4.53 | 28.79 ▼10.25 |
Add New Post /wp-admin/post-new.php | 1,591 ▲63 | 23.43 ▲0.35 | 671.64 ▲2.24 | 35.87 ▼15.98 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.13 ▼0.00 | 78.91 ▼28.04 | 44.78 ▲0.73 |
Suscriptores /wp-admin/edit.php?post_type=emails | 1,254 | 3.33 | 43.78 | 31.98 |
Suscriptflech /wp-admin/options-general.php?page=suscriptflech-settings-settings | 1,641 | 3.45 | 57.35 | 65.36 |
Añadir suscriptor /wp-admin/post-new.php?post_type=emails | 1,712 | 3.96 | 86.11 | 38.21 |
Enviar emails /wp-admin/edit.php?post_type=emails&page=envioemails | 1,450 | 6.78 | 107.61 | 82.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/String.php+529
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_widget-suscriptflech
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 30 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=emails&page=envioemails
- > Deprecated in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/String.php+537
Array and string offset access syntax with curly braces is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=emails&page=envioemails
- > Deprecated in wp-content/plugins/suscriptflech/admin/includes/custom-widget/plugin.php+260
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=emails&page=envioemails
- > Warning in wp-content/plugins/suscriptflech/admin/includes/custom-metaboxes/init.php+746
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/suscriptflech/public/views/public.php
- > /wp-content/plugins/suscriptflech/admin/includes/custom-widget/views/admin.php
- > /wp-content/plugins/suscriptflech/admin/includes/custom-metaboxes/tests/phpunit/includes/bootstrap.php
- > /wp-content/plugins/suscriptflech/admin/includes/reportes/excel.php
- 111× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Style/Border.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Style/Protection.php:36
- > PHP Warning
require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/linearBestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/trend/trendClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Writer/Excel2007/Theme.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/suscriptflech/admin/includes/custom-metaboxes/metabox.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/suscriptflech/admin/includes/custom-metaboxes/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Warning
require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/trend/linearBestFitClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Exception' not found in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Calculation/Exception.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Style/NumberFormat.php:36
- > PHP Fatal error
require_once(): Failed opening required 'PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/suscriptflech/admin/includes/PHPExcel/Shared/trend/linearBestFitClass.php on line 29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:284:58)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:297:58)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:310:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:323:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:336:51)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=suscriptflech-settings-settings:349:57)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1:2:27292)" undefined
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=suscriptflech-settings-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload,farbtastic&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 17 tag instead of maximum 10
suscriptflech/suscriptflech.php 85% from 13 tests
The main PHP file in "Suscriptflech" ver. 3.5.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin59,207 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 223 | 12,688 | 37,409 | 55,842 |
JavaScript | 9 | 312 | 410 | 2,254 |
CSS | 5 | 61 | 22 | 542 |
Markdown | 4 | 141 | 0 | 427 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
PO File | 1 | 0 | 0 | 17 |
XML | 1 | 0 | 1 | 17 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,176)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 54.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,176.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 194 | |
▷ Abstract classes | 6 | 3.09% |
▷ Concrete classes | 188 | 96.91% |
▷ Final classes | 0 | 0.00% |
Methods | 2,932 | |
▷ Static methods | 666 | 22.71% |
▷ Public methods | 2,417 | 82.44% |
▷ Protected methods | 33 | 1.13% |
▷ Private methods | 482 | 16.44% |
Functions | 34 | |
▷ Named functions | 30 | 88.24% |
▷ Anonymous functions | 4 | 11.76% |
Constants | 803 | |
▷ Global constants | 120 | 14.94% |
▷ Class constants | 683 | 85.06% |
▷ Public constants | 683 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/custom-widget/images/check.png | 3.46KB | 0.73KB | ▼ 78.87% |
admin/assets/images/twitter.png | 0.71KB | 0.49KB | ▼ 30.06% |
(invalid) public/assets/images/._check.png | 4.00KB | 0.00KB | ▼ 100.00% |
(invalid) admin/includes/custom-widget/images/._check.png | 4.00KB | 0.00KB | ▼ 100.00% |
admin/includes/custom-metaboxes/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |