Benchmarks
Plugin footprint 65% 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: ▲3.19MB] [CPU: ▲22.13ms] Passed 4 tests
This is a short check of server-side resources used by CardanoPress - Governance for Cardano
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.61 ▲3.15 | 67.65 ▲25.40 |
Dashboard /wp-admin | 6.54 ▲3.19 | 72.48 ▲12.83 |
Posts /wp-admin/edit.php | 6.59 ▲3.24 | 82.53 ▲38.63 |
Add New Post /wp-admin/post-new.php | 9.12 ▲3.23 | 110.59 ▲21.15 |
Media Library /wp-admin/upload.php | 6.40 ▲3.17 | 61.66 ▲29.13 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 6.57 | 68.37 |
Add New Proposal /wp-admin/post-new.php?post_type=proposal | 9.14 | 106.65 |
Install Plugins /wp-admin/admin.php?page=cardanopress-plugins | 6.40 | 59.79 |
Settings /wp-admin/edit.php?post_type=proposal&page=cp-governance | 6.45 | 60.15 |
All Proposals /wp-admin/edit.php?post_type=proposal | 6.45 | 61.77 |
Server storage [IO: ▲2.59MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Illegal file modification found: 1 file (0.19KB) outside of "wp-content/plugins/cardanopress-governance/" and "wp-content/uploads/"
- (new file) wp-content/cardanopress-logs/2023/11/19/installer.log
Filesystem: 529 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_actionscheduler_groups |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_logs |
New WordPress options |
---|
widget_recent-posts |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
schema-ActionScheduler_StoreSchema |
can_compress_scripts |
widget_theysaidso_widget |
action_scheduler_hybrid_store_demarkation |
Browser metrics Passed 4 tests
Checking browser requirements for CardanoPress - Governance for Cardano
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲132 | 14.32 ▲0.07 | 1.84 ▲0.13 | 44.03 ▼4.73 |
Dashboard /wp-admin | 2,296 ▲119 | 5.57 ▼0.04 | 98.02 ▼1.56 | 49.05 ▲6.07 |
Posts /wp-admin/edit.php | 2,210 ▲110 | 2.20 ▲0.18 | 35.21 ▼3.51 | 41.89 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,618 ▲90 | 23.02 ▼0.21 | 605.43 ▼10.65 | 49.66 ▼4.03 |
Media Library /wp-admin/upload.php | 1,509 ▲112 | 4.23 ▲0.01 | 99.20 ▼1.85 | 48.08 ▲6.61 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,355 | 2.19 | 28.04 | 37.18 |
Add New Proposal /wp-admin/post-new.php?post_type=proposal | 6,809 | 19.55 | 901.19 | 37.61 |
Install Plugins /wp-admin/admin.php?page=cardanopress-plugins | 1,079 | 2.19 | 25.61 | 31.94 |
Settings /wp-admin/edit.php?post_type=proposal&page=cp-governance | 1,744 | 7.25 | 155.31 | 70.63 |
All Proposals /wp-admin/edit.php?post_type=proposal | 1,186 | 2.10 | 40.37 | 34.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- This plugin does not fully uninstall, leaving 9 options in the database
- schema-ActionScheduler_LoggerSchema
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- action_scheduler_hybrid_store_demarkation
- theysaidso_admin_options
- can_compress_scripts
- schema-ActionScheduler_StoreSchema
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 262× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/GuzzleHttp/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/cardanopress-governance/dependencies/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/cardanopress-governance/dependencies/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'CardanoPress\\Dependencies\\ThemePlate\\Meta\\BaseMeta' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/ThemePlate/Meta/PostMeta.php:17
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/GuzzleHttp/BodySummarizer.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cardanopress-governance/dependencies/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/GuzzleHttp/Psr7/Uri.php:17
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php:25
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CardanoPress\\Dependencies\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/cardanopress-governance/dependencies/vendor/cardanopress/framework/dependencies/GuzzleHttp/Promise/FulfilledPromise.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Governance configuration screen), #2 (FT & NFT policy ID configuration), #3 (Voting interface example)
cardanopress-governance/cardanopress-governance.php Passed 13 tests
"CardanoPress - Governance for Cardano" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
A CardanoPress extension for governance
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin40,725 lines of code in 520 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 485 | 9,414 | 20,720 | 35,441 |
YAML | 1 | 419 | 0 | 2,927 |
JavaScript | 16 | 260 | 18 | 975 |
CSS | 6 | 121 | 15 | 624 |
Markdown | 6 | 206 | 0 | 483 |
JSON | 4 | 0 | 0 | 267 |
XML | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 54 | |
Traits | 18 | |
Classes | 389 | |
▷ Abstract classes | 41 | 10.54% |
▷ Concrete classes | 348 | 89.46% |
▷ Final classes | 38 | 10.92% |
Methods | 2,815 | |
▷ Static methods | 308 | 10.94% |
▷ Public methods | 2,104 | 74.74% |
▷ Protected methods | 445 | 15.81% |
▷ Private methods | 266 | 9.45% |
Functions | 189 | |
▷ Named functions | 52 | 27.51% |
▷ Anonymous functions | 137 | 72.49% |
Constants | 198 | |
▷ Global constants | 1 | 0.51% |
▷ Class constants | 197 | 99.49% |
▷ Public constants | 159 | 80.71% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin