Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.48ms] Passed 4 tests
Server-side resources used by GHActivity
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.42 ▲6.23 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.86 ▲7.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 45.31 ▼5.90 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 87.28 ▼7.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 37.42 ▲1.40 |
Repo /wp-admin/edit-tags.php?taxonomy=ghactivity_repo&post_type=ghactivity_event | 3.31 | 45.20 |
Person /wp-admin/edit-tags.php?taxonomy=ghactivity_actor&post_type=ghactivity_event | 3.31 | 34.74 |
Add New /wp-admin/post-new.php?post_type=ghactivity_event | 6.15 | 84.39 |
Event Type /wp-admin/edit-tags.php?taxonomy=ghactivity_event_type&post_type=ghactivity_event | 3.31 | 34.20 |
GitHub Activity Settings /wp-admin/options-general.php?page=ghactivity | 3.29 | 32.03 |
All GitHub Events /wp-admin/edit.php?post_type=ghactivity_event | 3.36 | 39.27 |
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: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_ghactivity_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GHActivity
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲49 | 14.28 ▼0.28 | 1.81 ▼0.13 | 43.53 ▲1.81 |
Dashboard /wp-admin | 2,235 ▲58 | 5.64 ▼0.03 | 96.16 ▲5.47 | 43.42 ▼0.53 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 1.98 ▼0.05 | 34.95 ▼3.46 | 34.02 ▼7.41 |
Add New Post /wp-admin/post-new.php | 1,570 ▲39 | 18.22 ▼4.92 | 649.72 ▼2.01 | 65.87 ▼4.86 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.17 ▼0.03 | 99.32 ▼7.26 | 43.13 ▼1.62 |
Repo /wp-admin/edit-tags.php?taxonomy=ghactivity_repo&post_type=ghactivity_event | 1,289 | 2.12 | 28.03 | 31.35 |
Person /wp-admin/edit-tags.php?taxonomy=ghactivity_actor&post_type=ghactivity_event | 1,286 | 2.12 | 27.52 | 30.26 |
Add New /wp-admin/post-new.php?post_type=ghactivity_event | 6,220 | 22.08 | 823.14 | 29.36 |
Event Type /wp-admin/edit-tags.php?taxonomy=ghactivity_event_type&post_type=ghactivity_event | 1,286 | 2.12 | 29.35 | 30.40 |
GitHub Activity Settings /wp-admin/options-general.php?page=ghactivity | 903 | 2.07 | 37.05 | 33.06 |
All GitHub Events /wp-admin/edit.php?post_type=ghactivity_event | 1,140 | 1.98 | 33.04 | 32.97 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_ghactivity_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ghactivity/charts.ghactivity.php
- > /wp-content/plugins/ghactivity/cpt.ghactivity.php
- > /wp-content/plugins/ghactivity/core.ghactivity.php
- > /wp-content/plugins/ghactivity/admin.ghactivity.php
- > /wp-content/plugins/ghactivity/ghactivity.php
- > /wp-content/plugins/ghactivity/widget.ghactivity.php
- > /wp-content/plugins/ghactivity/reports.ghactivity.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ghactivity/shortcode.ghactivity.php:6
- > 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 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
3 plugin tags: tracking, github, productivity
ghactivity/ghactivity.php 92% from 13 tests
"GHActivity" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,181 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 221 | 517 | 1,035 |
CSS | 2 | 5 | 7 | 118 |
JavaScript | 3 | 2 | 13 | 27 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 9 | 30.00% |
▷ Public methods | 24 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 20.00% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 2 | |
▷ Global constants | 2 | 100.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