Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Widget_Github_Organization has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼60.17ms] Passed 4 tests
Server-side resources used by Widget GitHub Organization
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.58 ▼38.59 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.66 ▼47.26 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.48 ▼50.90 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.00 ▼103.91 |
Media Library /wp-admin/upload.php | 2.10 ▼1.14 | 5.21 ▼31.46 |
Server storage [IO: ▲1.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_widget_github_organization |
Browser metrics Passed 4 tests
An overview of browser requirements for Widget GitHub Organization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.33 | 1.72 ▼0.17 | 44.47 ▲0.65 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼1.01 | 102.44 ▼2.39 | 44.12 ▲4.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 33.94 ▼8.03 | 36.08 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.19 ▼0.03 | 661.73 ▼8.83 | 52.11 ▼3.84 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 93.66 ▼12.53 | 43.33 ▼1.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Widget_Github_Organization has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_widget_github_organization
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-github-organization/Widget_Github_Organization.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 69% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== widget-github-organization ===
) - Contributors: No tags were detected
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots do not have images: #1 (Show widget in action), #2 (Widget settings)
widget-github-organization/Widget_Github_Organization.php 92% from 13 tests
The main PHP script in "Widget GitHub Organization" version 0.8.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("widget-github-organization.php" instead of "Widget_Github_Organization.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,358 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 54 | 54 | 350 |
CSS | 2 | 4 | 4 | 239 |
LESS | 1 | 3 | 2 | 230 |
Sass | 1 | 2 | 2 | 228 |
SVG | 1 | 3 | 0 | 197 |
PHP | 1 | 10 | 11 | 82 |
Markdown | 2 | 18 | 0 | 32 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 1.27MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/activate-plugin.png | 17.09KB | 7.37KB | ▼ 56.86% |
screenshot-2.png | 22.10KB | 9.04KB | ▼ 59.11% |
img/screenshot-2.png | 22.10KB | 9.04KB | ▼ 59.11% |
img/screenshot-1.png | 604.97KB | 214.71KB | ▼ 64.51% |
screenshot-1.png | 604.97KB | 214.71KB | ▼ 64.51% |