Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Compile error in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/string/string.php+5
Cannot use 'String' as class name as it is reserved
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.48ms] Passed 4 tests
Analyzing server-side resources used by Hercules Sentiment Analysis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.48 ▲2.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.15 ▼15.95 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.45 ▼2.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.74 ▼18.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.49 ▼0.32 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Hercules Sentiment Analysis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.86 ▲0.60 | 1.76 ▲0.11 | 46.71 ▲6.53 |
Dashboard /wp-admin | 2,203 ▲11 | 5.80 ▲0.88 | 98.92 ▼8.62 | 38.17 ▼6.96 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.05 | 36.03 ▼2.98 | 30.40 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.21 ▼0.04 | 651.17 ▼8.97 | 60.54 ▲5.12 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.27 ▲0.06 | 93.76 ▼9.99 | 45.57 ▲0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/PHPInsight/data/data.neg.php
- > /wp-content/plugins/hercules-sentiment-analysis/views/settings/template.php
- > /wp-content/plugins/hercules-sentiment-analysis/views/sentiment-analysis/template.php
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/examples/demo.php
- > /wp-content/plugins/hercules-sentiment-analysis/plugin.php
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/PHPInsight/data/data.neu.php
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/PHPInsight/data/data.ign.php
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/PHPInsight/data/data.pos.php
- > /wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/PHPInsight/data/data.prefix.php
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\HercAbstract' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/core/Model.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Loader' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/handlebars/src/Handlebars/Loader/InlineLoader.php:53
- > PHP Fatal error
Uncaught Error: Class 'Handlebars\\BaseString' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/handlebars/src/Handlebars/SafeString.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Handlebars\\Helper' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/handlebars/src/Handlebars/Helper/WithHelper.php:39
- > PHP Fatal error
Cannot use 'String' as class name as it is reserved in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/string/string.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PHPInsight_Autoloader' not found in wp-content/plugins/hercules-sentiment-analysis/helpers/phpinsight/src/php-insight/lib/bootstrap.php:4
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\View' not found in wp-content/plugins/hercules-sentiment-analysis/views/sentiment-analysis/sentiment-analysis.php:5
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\HercAbstract' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/core/Framework.php:3
- > PHP Fatal error
Cannot use Handlebars\\String as String because 'String' is a special class name in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/helpers/handlebars/src/Handlebars/Loader/FilesystemLoader.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Hercules\\HercAbstract' not found in wp-content/plugins/hercules-sentiment-analysis/hercules-framework/core/Controller.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
5 plugin tags: hercules, comments, sentiment analysis, posts, analysis
hercules-sentiment-analysis/plugin.php 85% from 13 tests
The principal PHP file in "Hercules Sentiment Analysis" v. 1.2.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hercules-sentiment-analysis.php" instead of "plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 191 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,939 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 680 | 13,550 | 12,911 |
JSON | 1 | 1 | 0 | 20 |
Markdown | 1 | 3 | 0 | 7 |
CSS | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 10.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 1 | 2.50% |
▷ Concrete classes | 39 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 221 | |
▷ Static methods | 3 | 1.36% |
▷ Public methods | 184 | 83.26% |
▷ Protected methods | 17 | 7.69% |
▷ Private methods | 20 | 9.05% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 33 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 33 | 100.00% |
▷ Public constants | 33 | 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
There were not PNG files found in your plugin