Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼16.11ms] Passed 4 tests
A check of server-side resources used by Fresh Connect by Fresh Labs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.83 | 45.26 ▲3.59 |
Dashboard /wp-admin | 4.17 ▲0.87 | 51.77 ▼6.14 |
Posts /wp-admin/edit.php | 4.29 ▲0.93 | 54.77 ▲6.53 |
Add New Post /wp-admin/post-new.php | 4.05 ▼1.84 | 41.11 ▼59.19 |
Media Library /wp-admin/upload.php | 4.09 ▲0.87 | 44.88 ▼2.71 |
Settings /wp-admin/admin.php?page=fresh-connect-settings | 4.06 | 35.80 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.20 | 36.15 |
Activity Log /wp-admin/admin.php?page=fresh-connect-activity-log | 4.07 | 37.31 |
What is this? /wp-admin/admin.php?page=fresh-connect-aboutus | 4.08 | 36.23 |
Connection Status /wp-admin/admin.php?page=fresh-connect-status | 4.06 | 38.33 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 69 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_fresh_page_reports |
wp_fresh_page_stats |
wp_fresh_connect_requests_log |
New WordPress options |
---|
fp_connection_keys |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
fresh_connect_status |
fresh_connect_help |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fresh Connect by Fresh Labs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 14.26 ▼0.09 | 1.65 ▼0.09 | 41.57 ▼1.14 |
Dashboard /wp-admin | 2,291 ▲111 | 5.93 ▲0.24 | 97.93 ▲11.94 | 86.32 ▲44.78 |
Posts /wp-admin/edit.php | 2,269 ▲169 | 2.84 ▲0.82 | 46.92 ▲12.20 | 44.05 ▲6.46 |
Add New Post /wp-admin/post-new.php | 1,625 ▲90 | 23.19 ▲4.82 | 641.60 ▲43.33 | 108.02 ▲31.68 |
Media Library /wp-admin/upload.php | 1,567 ▲170 | 5.17 ▲0.97 | 107.90 ▲5.70 | 89.28 ▲42.85 |
Settings /wp-admin/admin.php?page=fresh-connect-settings | 986 | 2.80 | 35.56 | 36.62 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,124 | 2.59 | 32.41 | 38.07 |
Activity Log /wp-admin/admin.php?page=fresh-connect-activity-log | 980 | 2.78 | 38.00 | 35.44 |
What is this? /wp-admin/admin.php?page=fresh-connect-aboutus | 1,112 | 2.77 | 34.79 | 62.15 |
Connection Status /wp-admin/admin.php?page=fresh-connect-status | 997 | 2.60 | 36.28 | 41.55 |
Uninstaller [IO: ▲0.74MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attentionZombie tables detected upon uninstall: 3 tables Zombie WordPress options were found after uninstall: 9 options
- Incomplete uninstall procedure, leaving 69 files (0.74MB) in the plugin directory
- (new file) inc/ClassFreshConnect.php
- (new file) assets/images/icon2.png
- (new file) inc/TGMLibrary/languages/tgmpa-cs_CZ.mo
- (new file) assets/js/fp-admin.js
- (new file) inc/Request.php
- (new file) inc/Api.php
- (new file) assets/images/icon3.png
- (new file) assets/css/fp-admin.css
- (new file) inc/TGMLibrary/class-tgm-plugin-activation.php
- (new file) inc/AutoLogin.php
- ...
- wp_fresh_connect_requests_log
- wp_fresh_page_reports
- wp_fresh_page_stats
- widget_theysaidso_widget
- can_compress_scripts
- fresh_connect_help
- theysaidso_admin_options
- widget_recent-comments
- fresh_connect_status
- db_upgraded
- widget_recent-posts
- fp_connection_keys
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fresh-connect/page/info.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FastPress_Context' not found in wp-content/plugins/fresh-connect/inc/AutoLogin.php:306
- > PHP Fatal error
require_once(): Failed opening required 'FRESH_CONNECT_DIR_PATHinc/ClassFreshConnect.php' (include_path='.:/usr/share/php') in wp-content/plugins/fresh-connect/inc/loader.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fresh-connect/init.php:16
- > PHP Warning
require_once(FRESH_CONNECT_DIR_PATHinc/ClassFreshConnect.php): failed to open stream: No such file or directory in wp-content/plugins/fresh-connect/inc/loader.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fresh-connect/inc/ClassFreshConnect.php:18
- > PHP Warning
Use of undefined constant FRESH_CONNECT_PLUGIN_FILE_PATH - assumed 'FRESH_CONNECT_PLUGIN_FILE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fresh-connect/inc/ClassFreshConnect.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/fresh-connect/inc/TGMLibrary/class-tgm-plugin-activation.php:2112
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/fresh-connect/page/templates/display_deactivation_popup.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/fresh-connect/inc/freshGetdata.php:2
- > PHP Warning
Use of undefined constant FRESH_CONNECT_DIR_PATH - assumed 'FRESH_CONNECT_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fresh-connect/inc/loader.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: cloud hosting, wordpress, wordpress hosting, cloud
fresh-connect/init.php 85% from 13 tests
Analyzing the main PHP file in "Fresh Connect by Fresh Labs" version 1.2.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("fresh-connect.php" instead of "init.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin9,719 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,449 | 1,993 | 4,842 |
PHP | 26 | 1,208 | 2,081 | 4,732 |
CSS | 1 | 0 | 2 | 92 |
JavaScript | 1 | 16 | 27 | 53 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 291 | |
▷ Static methods | 6 | 2.06% |
▷ Public methods | 244 | 83.85% |
▷ Protected methods | 32 | 11.00% |
▷ Private methods | 15 | 5.15% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 34 | |
▷ Global constants | 8 | 23.53% |
▷ Class constants | 26 | 76.47% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon2.png | 1.54KB | 0.60KB | ▼ 61.13% |
assets/images/icon3.png | 1.53KB | 0.64KB | ▼ 58.09% |