Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼287.86ms] Passed 4 tests
Analyzing server-side resources used by ActivityStream extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 55.19 ▼0.84 |
Dashboard /wp-admin | 3.51 ▲0.10 | 33.53 ▼0.27 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 37.67 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 101.97 ▼1,149.42 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 24.54 ▼0.21 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ActivityStream extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲45 | 15.81 ▲0.14 | 5.86 ▼0.30 | 2.37 ▼0.16 |
Dashboard /wp-admin | 2,895 ▲41 | 6.12 ▼0.07 | 115.01 ▼24.85 | 158.08 ▼5.72 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▼0.00 | 63.65 ▲0.81 | 140.71 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,752 ▼0 | 20.91 ▼0.07 | 455.49 ▲4.17 | 156.32 ▲2.97 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.03 | 136.71 ▼15.43 | 180.65 ▼8.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Even though no errors were found, this is by no means an exhaustive test
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activitystream-extension/activitystream-extension.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1-comments.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_feed_link() in wp-content/plugins/activitystream-extension/templates/feed-as2.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_singular() in wp-content/plugins/activitystream-extension/templates/feed-as2-comments.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/activitystream-extension/templates/feed-as1.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: json, atom, activitystreams, activity stream, rss...
activitystream-extension/activitystream-extension.php Passed 13 tests
The entry point to "ActivityStream extension" version 1.3.7 is a PHP file that has certain tags in its header comment area
73 characters long description:
An extensions which adds several ActivityStreams (activitystrea.ms) Feeds
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin690 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 143 | 284 | 690 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 17 | |
▷ Static methods | 17 | 100.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin