Benchmarks
Plugin footprint 83% 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: ▲0.08MB] [CPU: ▼1.86ms] Passed 4 tests
A check of server-side resources used by Sentimental Analysis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.45 ▲2.63 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.60 ▼11.37 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.22 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.46 ▲2.80 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 39.46 ▲5.20 |
Sentiments /wp-admin/options-general.php?page=sentiment-analysis | 3.27 | 39.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
sentiment_analysis_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sentimental Analysis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 13.23 ▼1.42 | 1.65 ▼0.32 | 40.65 ▼5.00 |
Dashboard /wp-admin | 2,228 ▲37 | 5.86 ▼0.04 | 98.29 ▼6.87 | 79.57 ▲37.34 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.01 | 40.43 ▲0.98 | 37.77 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,693 ▲175 | 24.86 ▲1.64 | 655.95 ▼36.40 | 52.72 ▼9.35 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.16 ▼0.04 | 96.05 ▼8.37 | 74.87 ▲26.90 |
Sentiments /wp-admin/options-general.php?page=sentiment-analysis | 853 | 2.06 | 25.47 | 25.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sentiment-analysis/sentimentanalysis.php:18
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: sentiment analysis api, text analytics, social sentiment analysis, social data analysis, sentiment analysis...
sentiment-analysis/sentimentanalysis.php 85% from 13 tests
The main file in "Sentimental Analysis" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 275 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sentiment-analysis.php" instead of "sentimentanalysis.php")
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
Success! There were no dangerous files found in this plugin426 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 12 | 426 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu.png | 1.55KB | 0.58KB | ▼ 62.38% |
images/good.png | 1.51KB | 0.84KB | ▼ 44.27% |
images/neutral.png | 1.41KB | 0.77KB | ▼ 45.31% |
images/bad.png | 1.44KB | 0.86KB | ▼ 40.20% |
images/settings.png | 2.78KB | 1.59KB | ▼ 42.69% |