Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.23ms] Passed 4 tests
Server-side resources used by wp-senpy
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.84 ▼4.08 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.98 ▼6.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.16 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.07 ▼0.18 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.20 ▲2.20 |
About /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu_about | 3.31 | 30.26 |
Comments Layout /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu_comment_layout | 3.31 | 33.20 |
Emotion & Sentiment Menu /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu | 3.31 | 28.68 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
wpsenpy_settings |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for wp-senpy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.78 ▲0.39 | 1.69 ▼0.35 | 46.05 ▼3.07 |
Dashboard /wp-admin | 2,230 ▲45 | 4.92 ▲0.07 | 102.44 ▼12.98 | 41.51 ▼1.95 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.05 | 40.64 ▼11.10 | 35.57 ▼7.80 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.39 ▲5.75 | 643.14 ▲6.99 | 56.84 ▼5.00 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.26 ▲0.03 | 95.96 ▼4.92 | 43.13 ▲0.07 |
About /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu_about | 872 | 2.03 | 24.15 | 37.31 |
Comments Layout /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu_comment_layout | 814 | 2.03 | 25.92 | 25.94 |
Emotion & Sentiment Menu /wp-admin/admin.php?page=sentiment_and_emotion_analysis_plugin_menu | 930 | 2.02 | 22.10 | 24.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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/wp-senpy/wp-senpy.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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: analysis, emotions, comments, sentiments, senpy
wp-senpy/wp-senpy.php 92% from 13 tests
The main PHP script in "wp-senpy" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin995 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 255 | 106 | 737 |
PO File | 2 | 74 | 92 | 258 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.62MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/joy.png | 194.81KB | 37.14KB | ▼ 80.94% |
images/disgust.png | 91.71KB | 35.14KB | ▼ 61.68% |
images/negative-fear.png | 61.07KB | 19.88KB | ▼ 67.45% |
images/neutral-emotion.png | 16.43KB | 7.93KB | ▼ 51.71% |
images/anger.png | 162.34KB | 37.79KB | ▼ 76.72% |