Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼291.90ms] Passed 4 tests
This is a short check of server-side resources used by ActivityPub
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 54.05 ▲0.76 |
Dashboard /wp-admin | 3.48 ▲0.07 | 35.11 ▼0.90 |
Posts /wp-admin/edit.php | 3.70 ▲0.07 | 43.37 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6.97 ▲0.00 | 95.14 ▼1,163.19 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 23.00 ▼4.27 |
ActivityPub /wp-admin/options-general.php?page=activitypub | 3.42 | 30.22 |
Followers (Fediverse) /wp-admin/users.php?page=activitypub-followers-list | 3.36 | 26.55 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ActivityPub
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲19 | 15.70 ▼0.08 | 5.69 ▼0.41 | 2.02 ▼0.77 |
Dashboard /wp-admin | 2,898 ▲48 | 6.16 ▲0.02 | 113.57 ▼12.96 | 185.30 ▲20.83 |
Posts /wp-admin/edit.php | 2,701 ▲7 | 3.24 ▲0.02 | 65.93 ▲1.72 | 150.04 ▲10.32 |
Add New Post /wp-admin/post-new.php | 1,667 ▼23 | 16.22 ▼5.35 | 441.18 ▼30.82 | 173.99 ▼26.69 |
Media Library /wp-admin/upload.php | 1,711 ▲10 | 5.55 ▲0.02 | 140.67 ▼3.90 | 195.94 ▲11.37 |
ActivityPub /wp-admin/options-general.php?page=activitypub | 1,486 | 2.46 | 83.08 | 157.32 |
Followers (Fediverse) /wp-admin/users.php?page=activitypub-followers-list | 1,054 | 2.38 | 55.03 | 111.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/activitypub/templates/followers-list.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Server' not found in wp-content/plugins/activitypub/includes/rest/class-server.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/activitypub/templates/post-json.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/activitypub/templates/author-json.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/activitypub/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function Activitypub\\get_context() in wp-content/plugins/activitypub/templates/blog-json.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/activitypub/activitypub.php:83
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/activitypub/includes/table/followers-list.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function Activitypub\\add_filter() in wp-content/plugins/activitypub/includes/debug.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/activitypub/includes/table/followers-list.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: fediverse, activitypub, activitystream, ostatus
activitypub/activitypub.php 92% from 13 tests
The main file in "ActivityPub" v. 0.13.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/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
There were no executable files found in this plugin2,309 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 583 | 744 | 2,309 |
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.24 |
Average class complexity | 9.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 86 | 74.78% |
▷ Public methods | 115 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 17 | 73.91% |
▷ Anonymous functions | 6 | 26.09% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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 were not PNG files found in your plugin