Benchmarks
Plugin footprint 48% 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: ▲0.00MB] [CPU: ▼6.75ms] Passed 4 tests
Server-side resources used by Rest-Cent Donations
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.61 ▼7.72 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.38 ▼10.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.05 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.75 ▼6.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.85 ▼3.05 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Rest-Cent Donations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.23 ▼1.05 | 1.61 ▼0.53 | 39.05 ▼4.96 |
Dashboard /wp-admin | 2,206 ▲15 | 4.80 ▼0.14 | 108.67 ▼9.65 | 38.10 ▼9.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.00 | 38.99 ▲0.38 | 34.48 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.19 ▼0.10 | 670.06 ▲4.72 | 69.64 ▲12.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.01 | 98.67 ▼14.10 | 42.21 ▼6.55 |
Uninstaller [IO: ▲0.24MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attentionZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/rest-cent-donations/uninstall.php+31
Uncaught Error: Call to undefined function wc_get_product_id_by_sku() in wp-content/plugins/rest-cent-donations/uninstall.php:31
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 28 files (0.24MB) in the plugin directory
- (new file) admin/partials/rest-cent-admin-display.php
- (new file) includes/class-rest-cent-i18n.php
- (new file) includes/class-rest-cent-deactivator.php
- (new file) README.txt
- (new file) admin/index.php
- (new file) admin/css/rest-cent-admin.css
- (new file) includes/class-rest-cent-activator.php
- (new file) admin/js/rest-cent-admin.js
- (new file) LICENSE.txt
- (new file) admin/class-rest-cent-admin.php
- ...
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rest-cent-donations/admin/partials/rest-cent-admin-display.php
- > /wp-content/plugins/rest-cent-donations/public/partials/rest-cent-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: rest-cent, donations, charity, spenden
rest-cent-donations/rest-cent.php 92% from 13 tests
"Rest-Cent Donations" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rest-cent-donations.php" instead of "rest-cent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,550 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 321 | 564 | 1,942 |
CSS | 2 | 84 | 21 | 406 |
PO File | 1 | 57 | 0 | 196 |
JavaScript | 2 | 4 | 32 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 64 | |
▷ Static methods | 4 | 6.25% |
▷ Public methods | 59 | 92.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/rest_log.png | 22.07KB | 10.65KB | ▼ 51.74% |
public/css/rest-cent.png | 2.41KB | 1.59KB | ▼ 34.04% |
public/css/rc-icon.png | 6.05KB | 3.07KB | ▼ 49.25% |
public/css/1.png | 56.53KB | 21.90KB | ▼ 61.26% |