Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲3.04ms] Passed 4 tests
A check of server-side resources used by ActivityPub
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 39.45 ▼2.25 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.15 ▲0.27 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.42 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 101.20 ▲10.49 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.19 ▲12.12 |
Followers /wp-admin/users.php?page=activitypub-followers-list | 3.42 | 37.69 |
ActivityPub /wp-admin/options-general.php?page=activitypub | 3.43 | 36.25 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
activitypub_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ActivityPub
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲69 | 14.72 ▲0.37 | 1.75 ▲0.09 | 37.64 ▼7.94 |
Dashboard /wp-admin | 2,206 ▲26 | 5.60 ▼0.05 | 94.30 ▼8.98 | 42.75 ▼1.71 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.01 | 38.89 ▲1.13 | 36.33 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,709 ▲180 | 21.78 ▼1.36 | 701.81 ▲92.61 | 37.52 ▼17.87 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.15 ▼0.01 | 94.59 ▼4.47 | 43.16 ▲2.07 |
Followers /wp-admin/users.php?page=activitypub-followers-list | 976 | 2.02 | 26.80 | 28.17 |
ActivityPub /wp-admin/options-general.php?page=activitypub | 1,286 | 2.35 | 29.09 | 32.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- activitypub_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Collection\\Users' not found in wp-content/plugins/activitypub/templates/user-settings.php:3
- > 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/class-followers.php on line 9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/activitypub/includes/table/class-followers.php on line 9
- > 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/class-followers.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Activity\\Actor' not found in wp-content/plugins/activitypub/includes/model/class-user.php:13
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Model\\Blog_User' not found in wp-content/plugins/activitypub/templates/blog-json.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/activitypub/templates/post-json.php:3
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Collection\\Users' not found in wp-content/plugins/activitypub/templates/author-json.php:2
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Model\\Blog_User' not found in wp-content/plugins/activitypub/includes/model/class-application-user.php:10
- > PHP Fatal error
Uncaught Error: Class 'Activitypub\\Activity\\Base_Object' not found in wp-content/plugins/activitypub/includes/activity/class-activity.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: activitypub, fediverse, ostatus, activitystream
activitypub/activitypub.php 92% from 13 tests
The main file in "ActivityPub" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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 detected6,366 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,395 | 3,121 | 6,064 |
CSS | 3 | 28 | 0 | 173 |
JSON | 2 | 0 | 0 | 104 |
JavaScript | 5 | 2 | 1 | 25 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 39 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 323 | |
▷ Static methods | 212 | 65.63% |
▷ Public methods | 300 | 92.88% |
▷ Protected methods | 19 | 5.88% |
▷ Private methods | 4 | 1.24% |
Functions | 47 | |
▷ Named functions | 31 | 65.96% |
▷ Anonymous functions | 16 | 34.04% |
Constants | 18 | |
▷ Global constants | 13 | 72.22% |
▷ Class constants | 5 | 27.78% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wp-logo.png | 11.56KB | 8.15KB | ▼ 29.45% |