Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.47ms] Passed 4 tests
Server-side resources used by WP Reposidget (GitHub 仓库挂件)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.44 ▼13.43 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.72 ▼12.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.60 ▲2.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.79 ▲1.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.50 ▲5.48 |
WP Reposidget /wp-admin/options-general.php?page=wp-reposidget-options | 3.21 | 32.28 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
wp_reposidget_github_token |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Reposidget (GitHub 仓库挂件): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.32 ▼0.95 | 1.72 ▼0.18 | 42.14 ▼2.22 |
Dashboard /wp-admin | 2,265 ▲77 | 4.88 ▼1.00 | 112.10 ▼2.48 | 39.11 ▼8.14 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.00 ▼0.01 | 40.36 ▲3.51 | 34.21 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,584 ▲51 | 23.32 ▲0.15 | 647.61 ▼64.23 | 50.26 ▼9.80 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.02 | 96.41 ▼12.18 | 41.55 ▼1.80 |
WP Reposidget /wp-admin/options-general.php?page=wp-reposidget-options | 845 | 2.20 | 24.52 | 28.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- wp_reposidget_github_token
- 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
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-reposidget/wp-reposidget.php:225
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Use shortcode to insert reposidget into the post/page.), #2 (The look of a reposidget.), #3 (Generate a GitHub personal access token.)
wp-reposidget/wp-reposidget.php Passed 13 tests
The primary PHP file in "WP Reposidget (GitHub 仓库挂件)" version 2.1.1 is used by WordPress to initiate all plugin functionality
113 characters long description:
Insert GitHub repository widget into you posts/pages. 在 WordPress 文章/页面中插入 GitHub 项目挂件。
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 plugin776 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 40 | 0 | 335 |
PHP | 1 | 29 | 9 | 195 |
JavaScript | 4 | 20 | 6 | 120 |
PO File | 1 | 25 | 30 | 72 |
HTML | 2 | 0 | 0 | 38 |
SVG | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.03MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 9.61KB | 9.48KB | ▼ 1.30% |
screenshot-1.png | 12.49KB | 12.53KB | 0.00% |
screenshot-2.png | 8.27KB | 8.20KB | ▼ 0.87% |