Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.36ms] Passed 4 tests
Analyzing server-side resources used by Newsgram
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.06 ▼5.32 |
Dashboard /wp-admin | 3.37 ▲0.03 | 47.99 ▼19.96 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.40 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 98.08 ▲0.45 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.41 ▲2.93 |
Newsgram settings /wp-admin/options-general.php?page=nwg-settings-admin | 3.29 | 34.90 |
Newsgrams /wp-admin/edit.php?post_type=newsgram | 3.31 | 33.61 |
Add New /wp-admin/post-new.php?post_type=newsgram | 3.30 | 38.34 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/newsgram/" and "wp-content/uploads/"
- (new file) wp-content/plugins/log.txt
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Newsgram
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.72 ▲0.17 | 1.86 ▲0.10 | 43.93 ▼3.20 |
Dashboard /wp-admin | 2,229 ▲55 | 5.82 ▲0.17 | 83.70 ▼10.60 | 39.09 ▼3.34 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.02 | 41.19 ▲1.20 | 37.68 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.96 ▼0.60 | 650.94 ▼32.92 | 59.67 ▲7.94 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.17 ▼0.03 | 101.28 ▼13.69 | 43.19 ▼6.26 |
Newsgram settings /wp-admin/options-general.php?page=nwg-settings-admin | 996 | 1.81 | 31.65 | 30.87 |
Newsgrams /wp-admin/edit.php?post_type=newsgram | 1,114 | 1.95 | 33.61 | 30.53 |
Add New /wp-admin/post-new.php?post_type=newsgram | 1,946 | 6.52 | 137.24 | 48.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% 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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=newsgram
- > Notice in wp-content/plugins/newsgram/newsgram.php+130
Trying to access array offset on value of type bool
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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/newsgram/admin-parts/tab-footer.php
- > /wp-content/plugins/newsgram/admin-parts/sidebar.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=newsgram
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.hooks (/wp-content/plugins/newsgram/meta-box-class/js/meta-box.js:193:73)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/newsgram/meta-box-class/js/meta-box.js:338:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=newsgram
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: channel, telegram, bot, messages, newsletter
newsgram/newsgram.php Passed 13 tests
Analyzing the main PHP file in "Newsgram" version 1.0
50 characters long description:
Send messages like newsletter to Telegram Channel.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,873 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 784 | 788 | 7,016 |
PHP | 7 | 411 | 1,065 | 1,457 |
CSS | 7 | 161 | 101 | 1,024 |
PO File | 7 | 119 | 129 | 376 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 1 | 0.88% |
▷ Public methods | 112 | 99.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.88% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
21 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
meta-box-class/js/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
meta-box-class/images/add.png | 0.12KB | 0.12KB | ▼ 0.81% |
meta-box-class/images/move.png | 0.26KB | 0.26KB | 0.00% |
meta-box-class/images/delete-16.png | 1.74KB | 0.90KB | ▼ 48.23% |
meta-box-class/js/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |