Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲1.51MB] [CPU: ▲13.79ms] Passed 4 tests
An overview of server-side resources used by Contentside Semantic Platform
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 57.66 ▲21.16 |
Dashboard /wp-admin | 4.82 ▲1.51 | 59.94 ▲11.44 |
Posts /wp-admin/edit.php | 4.86 ▲1.50 | 65.06 ▲13.34 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.52 | 106.65 ▲9.20 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 59.93 ▲26.90 |
CSP /wp-admin/tools.php?page=csp-plugin | 4.71 | 45.95 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.90 | 54.40 |
Server storage [IO: ▲1.22MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 191 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
schema-ActionScheduler_LoggerSchema |
schema-ActionScheduler_StoreSchema |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contentside Semantic Platform
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲228 | 20.20 ▲5.64 | 5.98 ▲4.28 | 44.07 ▲1.80 |
Dashboard /wp-admin | 2,281 ▲107 | 9.56 ▲3.91 | 221.78 ▲132.60 | 40.13 ▼0.32 |
Posts /wp-admin/edit.php | 2,218 ▲115 | 9.23 ▲7.21 | 85.29 ▲44.16 | 35.64 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 22.16 ▼0.75 | 553.42 ▼121.66 | 38.08 ▼20.18 |
Media Library /wp-admin/upload.php | 1,512 ▲109 | 11.23 ▲7.06 | 141.59 ▲41.11 | 47.22 ▲3.57 |
CSP /wp-admin/tools.php?page=csp-plugin | 939 | 8.76 | 63.61 | 25.80 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,365 | 9.06 | 68.21 | 28.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- wp_actionscheduler_actions
- wp_actionscheduler_groups
- This plugin does not fully uninstall, leaving 9 options in the database
- schema-ActionScheduler_StoreSchema
- widget_recent-comments
- theysaidso_admin_options
- schema-ActionScheduler_LoggerSchema
- action_scheduler_hybrid_store_demarkation
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=csp-plugin
- > Notice in wp-content/plugins/contentside-semantic-platform/src/admin/partials/csp-plugin-admin-display.php+80
Undefined index: csp_plugin_posts_already_sync_count
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
The following issues need your attention
- 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CspPluginCSPService' not found in wp-content/plugins/contentside-semantic-platform/src/common/CSP/CspPluginMoreLikeThisService.php:13
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store_Deprecated' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Store.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > 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/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/contentside-semantic-platform/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: api, contentside, related posts, contentside semantic platform, ai...
contentside-semantic-platform/csp-plugin.php 85% from 13 tests
This is the main PHP file of "Contentside Semantic Platform" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("contentside-semantic-platform.php" instead of "csp-plugin.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected11,843 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 2,341 | 7,132 | 9,484 |
JavaScript | 26 | 244 | 120 | 1,868 |
JSON | 4 | 0 | 0 | 180 |
Markdown | 3 | 43 | 0 | 113 |
CSS | 2 | 24 | 4 | 110 |
PO File | 1 | 37 | 16 | 88 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 105 | |
▷ Abstract classes | 15 | 14.29% |
▷ Concrete classes | 90 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 805 | |
▷ Static methods | 90 | 11.18% |
▷ Public methods | 609 | 75.65% |
▷ Protected methods | 142 | 17.64% |
▷ Private methods | 54 | 6.71% |
Functions | 62 | |
▷ Named functions | 22 | 35.48% |
▷ Anonymous functions | 40 | 64.52% |
Constants | 75 | |
▷ Global constants | 1 | 1.33% |
▷ Class constants | 74 | 98.67% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/select_text.png | 59.08KB | 22.03KB | ▼ 62.72% |