Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.86ms] Passed 4 tests
This is a short check of server-side resources used by Activity Stream
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 41.52 ▲7.49 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.94 ▼1.68 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 47.02 ▲6.19 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 95.90 ▼566.85 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 38.06 ▲2.91 |
Activity Stream /wp-admin/index.php?page=activity-stream | 3.01 | 26.91 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_activity_stream |
New WordPress options |
---|
astream_db_ver |
Browser metrics Passed 4 tests
A check of browser resources used by Activity Stream
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.01 ▲0.46 | 8.82 ▲0.86 | 56.27 ▲4.09 |
Dashboard /wp-admin | 2,975 ▲41 | 5.88 ▼0.13 | 141.50 ▼18.38 | 120.61 ▼1.56 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 75.54 ▲4.49 | 101.00 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,651 ▼32 | 18.19 ▼0.22 | 375.04 ▼25.32 | 119.38 ▼0.05 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.04 | 168.88 ▲24.90 | 115.37 ▼16.54 |
Activity Stream /wp-admin/index.php?page=activity-stream | 1,067 | 2.33 | 56.39 | 81.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_activity_stream
- Zombie WordPress options detected upon uninstall: 1 option
- astream_db_ver
Smoke tests 50% 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/index.php?page=activity-stream
- > Notice in wp-content/plugins/wp-activity-stream/activity-stream.php+248
Undefined index: ppage
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-activity-stream/activity-stream.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is missing in wp-activity-stream/assets to your readme.txt
wp-activity-stream/activity-stream.php 92% from 13 tests
The entry point to "Activity Stream" version 1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-activity-stream.php" instead of "activity-stream.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected310 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 70 | 13 | 282 |
CSS | 1 | 7 | 0 | 26 |
JavaScript | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin