Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.95ms] Passed 4 tests
A check of server-side resources used by NewsmanApp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 38.72 ▼2.11 |
Dashboard /wp-admin | 3.49 ▲0.15 | 49.22 ▼11.94 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.64 ▲5.89 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 94.92 ▲1.65 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.32 ▲4.61 |
Widget /wp-admin/admin.php?page=NewsmanWidget | 3.38 | 32.84 |
SMS /wp-admin/admin.php?page=NewsmanSMS | 3.50 | 34.08 |
Oauth /wp-admin/admin.php?page=NewsmanOauth | 3.42 | 33.18 |
Remarketing /wp-admin/admin.php?page=NewsmanRemarketing | 3.39 | 30.96 |
Settings /wp-admin/admin.php?page=NewsmanSettings | 3.43 | 32.58 |
Newsman /wp-admin/admin.php?page=Newsman | 3.38 | 29.19 |
Sync /wp-admin/admin.php?page=NewsmanSync | 3.43 | 31.57 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NewsmanApp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲120 | 14.69 ▲0.59 | 1.77 ▲0.08 | 39.91 ▼4.69 |
Dashboard /wp-admin | 2,233 ▲56 | 5.54 ▼0.30 | 94.73 ▼5.18 | 75.01 ▲29.70 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 1.99 ▲0.05 | 39.09 ▲0.45 | 34.20 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.37 ▲0.34 | 615.27 ▼45.65 | 56.00 ▲1.67 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.22 ▼0.01 | 94.97 ▼1.66 | 71.07 ▲29.26 |
Widget /wp-admin/admin.php?page=NewsmanWidget | 911 | 2.03 | 29.30 | 26.08 |
SMS /wp-admin/admin.php?page=NewsmanSMS | 1,369 | 1.90 | 25.13 | 30.74 |
Oauth /wp-admin/admin.php?page=NewsmanOauth | 922 | 2.02 | 27.03 | 25.15 |
Remarketing /wp-admin/admin.php?page=NewsmanRemarketing | 929 | 2.07 | 27.14 | 27.83 |
Settings /wp-admin/admin.php?page=NewsmanSettings | 1,076 | 2.21 | 26.70 | 24.91 |
Newsman /wp-admin/admin.php?page=Newsman | 993 | 2.21 | 26.22 | 25.96 |
Sync /wp-admin/admin.php?page=NewsmanSync | 1,022 | 2.08 | 25.86 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=NewsmanSync
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- > GET request to /wp-admin/admin.php?page=NewsmanSync
- > Notice in wp-content/plugins/newsmanapp/src/backend-sync.php+131
Undefined variable: available_lists
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=NewsmanSync
- > Warning in wp-content/plugins/newsmanapp/src/backend-sync.php+169
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=NewsmanSync
- > Notice in wp-content/plugins/newsmanapp/src/backend-sync.php+150
Undefined variable: available_smslists
- > GET request to /wp-admin/admin.php?page=NewsmanSync
- > Notice in wp-content/plugins/newsmanapp/src/backend-sync.php+169
Undefined variable: available_segments
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
Almost there! Just fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-oauth.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-sms.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-remarketing.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/newsmanapp/src/frontend.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-sync.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/newsmanapp/newsman_widget.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsmanapp/src/backend-settings.php:3
- > 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 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
newsmanapp/wc-newsman-remarketing.php 62% from 13 tests
"NewsmanApp" version 2.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")
- Main file name: Name the main plugin file the same as the plugin slug ("newsmanapp.php" instead of "wc-newsman-remarketing.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("3.7" instead of "2.1")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,364 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 688 | 622 | 3,090 |
CSS | 1 | 25 | 2 | 109 |
JavaScript | 1 | 83 | 385 | 104 |
Markdown | 1 | 53 | 0 | 61 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 13 | 11.40% |
▷ Public methods | 107 | 93.86% |
▷ Protected methods | 4 | 3.51% |
▷ Private methods | 3 | 2.63% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.57MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/wp_sms.png | 71.46KB | 25.07KB | ▼ 64.91% |
assets/wp_newsman_widget.png | 26.04KB | 8.05KB | ▼ 69.07% |
assets/wp_activation.png | 27.92KB | 12.25KB | ▼ 56.13% |
src/img/newsman-mini.png | 1.39KB | 0.82KB | ▼ 40.73% |
assets/wp_sync.png | 72.98KB | 25.58KB | ▼ 64.95% |