Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; XagithubWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.70ms] Passed 4 tests
An overview of server-side resources used by WP Xagithub Activity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.13 ▼36.94 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.53 ▼43.99 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.74 ▼50.44 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.77 ▼91.41 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.54 ▼31.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_xagithubwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Xagithub Activity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.42 ▲0.52 | 1.75 ▼0.08 | 45.79 ▼0.40 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.02 | 93.81 ▲4.94 | 42.29 ▼0.96 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 37.31 ▼3.54 | 34.38 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.67 ▼4.90 | 636.92 ▲6.49 | 61.00 ▲6.62 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.25 ▲0.03 | 97.44 ▼5.33 | 41.44 ▼6.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; XagithubWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_xagithubwidget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php:11
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: activity github, github activity, github, xagithub, atom
wp-xagithub-activity/wp-xagithub.php 92% from 13 tests
The entry point to "WP Xagithub Activity" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-xagithub-activity.php" instead of "wp-xagithub.php")
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 detected123 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 17 | 85 |
CSS | 1 | 3 | 0 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.64KB | 4.83KB | ▼ 88.40% |
images/github.png | 2.57KB | 1.00KB | ▼ 61.03% |