Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼17.01ms] Passed 4 tests
An overview of server-side resources used by Connect ProfilePress and Discord
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.53 | 58.16 ▲15.39 |
Dashboard /wp-admin | 4.52 ▲1.21 | 39.25 ▼18.14 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 45.54 ▼5.79 |
Add New Post /wp-admin/post-new.php | 4.52 ▼1.37 | 52.85 ▼49.96 |
Media Library /wp-admin/upload.php | 4.52 ▲1.28 | 41.75 ▲5.84 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.53 | 50.87 |
Discord Settings /wp-admin/admin.php?page=connect-profilepress-and-discord | 4.52 | 45.98 |
Server storage [IO: ▲0.91MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/connect-profilepress-and-discord/" and "wp-content/uploads/"
- (new file) wp-content/fda84261-227f-4cd0-8fe4-7a769b74134eprofilepress_discord_api_logs.txt
Filesystem: 131 new files
Database: 4 new tables, 28 new options
New tables |
---|
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_logs |
wp_actionscheduler_groups |
New WordPress options |
---|
ets_profilepress_discord_job_queue_batch_size |
action_scheduler_hybrid_store_demarkation |
schema-ActionScheduler_LoggerSchema |
ets_profilepress_discord_purchase_message |
ets_profilepress_discord_retry_failed_api |
widget_recent-comments |
ets_profilepress_discord_send_expired_dm |
ets_profilepress_discord_send_purchase_dm |
ets_profilepress_discord_connect_button_bg_color |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Connect ProfilePress and Discord
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.19 ▼0.19 | 1.76 ▼0.07 | 39.96 ▼8.16 |
Dashboard /wp-admin | 2,210 ▲1 | 4.85 ▼0.01 | 113.86 ▲9.32 | 42.83 ▼2.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 41.47 ▲5.55 | 35.67 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 21.88 ▲3.53 | 674.50 ▼66.98 | 64.23 ▲0.52 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.31 ▲0.06 | 97.88 ▼3.57 | 42.89 ▼0.45 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,238 | 1.81 | 28.62 | 30.74 |
Discord Settings /wp-admin/admin.php?page=connect-profilepress-and-discord | 1,995 | 3.14 | 69.37 | 56.69 |
Uninstaller [IO: ▲0.00MB] [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 attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/connect-profilepress-and-discord/admin/class-connect-profilepress-and-discord-admin.php+132
Use of undefined constant PPRESS_DASHBOARD_SETTINGS_SLUG - assumed 'PPRESS_DASHBOARD_SETTINGS_SLUG' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_actionscheduler_groups
- wp_actionscheduler_logs
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- This plugin did not uninstall successfully, leaving 28 options in the database
- widget_recent-posts
- action_scheduler_hybrid_store_demarkation
- ets_profilepress_discord_loggedin_button_text
- can_compress_scripts
- ets_profilepress_discord_cancelled_message
- action_scheduler_lock_async-request-runner
- ets_profilepress_discord_disconnect_button_bg_color
- widget_theysaidso_widget
- ets_profilepress_discord_job_queue_batch_size
- ets_profilepress_discord_uuid_file_name
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=connect-profilepress-and-discord
- > Warning in wp-content/plugins/connect-profilepress-and-discord/admin/class-connect-profilepress-and-discord-admin.php+132
Use of undefined constant PPRESS_DASHBOARD_SETTINGS_SLUG - assumed 'PPRESS_DASHBOARD_SETTINGS_SLUG' (this will throw an Error in a future version of PHP)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/connect-profilepress-and-discord/public/partials/connect-profilepress-and-discord-public-display.php
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connect-profilepress-and-discord/admin/partials/connect-profilepress-and-discord-admin-display.php:29
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/actions/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/ActionScheduler_AdminView.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connect-profilepress-and-discord/admin/partials/pages/connect-profilepress-discord-documentation.php:4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/connect-profilepress-and-discord/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/connect-profilepress-and-discord/admin/partials/pages/connect-profilepress-discord-application-details.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=connect-profilepress-and-discord
- > Network (severe)
var/www/wordpress/wp-content/plugins/connect-profilepress-and-discord/admin/images/ets-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=connect-profilepress-and-discord
- > Console-api (severe) in unknown
/wp-content/plugins/connect-profilepress-and-discord/admin/js/connect-profilepress-and-discord-admin.js?ver=1.0.3 115:12 Object
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
connect-profilepress-and-discord/connect-profilepress-and-discord.php Passed 13 tests
The main PHP file in "Connect ProfilePress and Discord" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Sell private access to your discord server, and assign discord roles as per the membership level of the users.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin9,636 lines of code in 118 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,997 | 6,038 | 8,501 |
CSS | 5 | 13 | 20 | 662 |
JavaScript | 5 | 37 | 14 | 372 |
Markdown | 3 | 37 | 0 | 91 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 15 | 17.86% |
▷ Concrete classes | 69 | 82.14% |
▷ Final classes | 0 | 0.00% |
Methods | 656 | |
▷ Static methods | 70 | 10.67% |
▷ Public methods | 492 | 75.00% |
▷ Protected methods | 136 | 20.73% |
▷ Private methods | 28 | 4.27% |
Functions | 55 | |
▷ Named functions | 47 | 85.45% |
▷ Anonymous functions | 8 | 14.55% |
Constants | 42 | |
▷ Global constants | 9 | 21.43% |
▷ Class constants | 33 | 78.57% |
▷ Public constants | 33 | 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.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ets-logo.png | 11.34KB | 7.55KB | ▼ 33.46% |
admin/images/icon.png | 99.19KB | 44.08KB | ▼ 55.56% |