Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.91ms] Passed 4 tests
A check of server-side resources used by Newstream
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.02 | 45.89 ▼0.30 |
Dashboard /wp-admin | 3.58 ▼0.05 | 51.39 ▼20.31 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 54.13 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.02 | 88.07 ▼16.59 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 41.20 ▼2.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_newstream_widget |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Newstream
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.47 ▲0.10 | 1.95 ▲0.09 | 43.17 ▼2.39 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▲0.05 | 89.96 ▼4.78 | 38.46 ▼10.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 39.88 ▲0.70 | 34.92 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.12 ▲5.52 | 676.19 ▼28.84 | 58.12 ▲2.36 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 102.21 ▼14.51 | 49.02 ▲0.56 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_newstream_widget
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/newstream/newstream.php
- > /wp-content/plugins/newstream/uinstall.php
- > /wp-content/plugins/newstream/includes/newstream.ui.inc.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: lies in wp-content/plugins/newstream/includes/newstream.ui.inc.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (To be added in `/assets/screenshot-1.png`)
newstream/newstream.php 92% from 13 tests
This is the main PHP file of "Newstream" version 1.0a..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0a...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected108 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 40 | 66 |
Markdown | 1 | 26 | 0 | 42 |
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.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Named functions | 1 | 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
There were not PNG files found in your plugin