Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.53MB] [CPU: ▼51.93ms] Passed 4 tests
An overview of server-side resources used by XING for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.16 ▼5.35 |
Dashboard /wp-admin | 2.43 ▼0.92 | 11.29 ▼47.91 |
Posts /wp-admin/edit.php | 2.43 ▼0.93 | 9.76 ▼38.35 |
Add New Post /wp-admin/post-new.php | 2.43 ▼3.46 | 10.49 ▼97.04 |
Media Library /wp-admin/upload.php | 2.43 ▼0.80 | 11.10 ▼24.42 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_xing-follow |
can_compress_scripts |
widget_theysaidso_widget |
widget_xing-share |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for XING for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 13.31 ▼1.09 | 3.91 ▲1.97 | 44.06 ▲1.99 |
Dashboard /wp-admin | 2,253 ▲68 | 4.85 ▼0.06 | 99.48 ▼1.31 | 35.86 ▼8.38 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.01 | 42.09 ▲4.66 | 34.76 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.16 ▲5.03 | 620.01 ▲26.42 | 60.73 ▲0.79 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.26 ▲0.07 | 95.14 ▼6.35 | 40.96 ▼4.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/share-on-xing/share-on-xing.php+40
Non-static method XING_Share_Settings::init() should not be called statically
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_xing-share
- widget_theysaidso_widget
- can_compress_scripts
- widget_xing-follow
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× 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/share-on-xing/plugin/xing-share-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-on-xing/share-on-xing.php:114
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/share-on-xing/plugin/xing-follow-widget.php:3
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- License uri: Invalid url: "license.txt"
- Tags: There are too many tags (12 tag instead of maximum 10)
share-on-xing/share-on-xing.php Passed 13 tests
"XING for WordPress" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
A plugin that allows you to easily integrate the XING Share button and the Follow button on any WordPress based website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin846 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 237 | 77 | 759 |
CSS | 2 | 16 | 0 | 68 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.77% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/xing_share_layouts.png | 3.03KB | 3.23KB | 0.00% |