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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/rivercraft/widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; rcou_widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.49ms] Passed 4 tests
Server-side resources used by RiverCraft
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.27 ▼35.67 |
Dashboard /wp-admin | 2.09 ▼1.22 | 6.38 ▼46.78 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.67 ▼39.27 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 8.10 ▼84.25 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.01 ▼28.19 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_rcou-widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RiverCraft
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.25 ▼0.92 | 1.61 ▼0.22 | 45.48 ▼2.16 |
Dashboard /wp-admin | 2,229 ▲41 | 5.82 ▼0.04 | 101.40 ▼17.46 | 66.36 ▲19.47 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 1.97 ▼0.21 | 36.75 ▼2.58 | 34.65 ▲6.37 |
Add New Post /wp-admin/post-new.php | 1,688 ▲155 | 22.56 ▼0.80 | 717.01 ▲18.43 | 48.12 ▼1.59 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.16 ▼0.05 | 103.21 ▲5.34 | 49.24 ▲5.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/rivercraft/widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; rcou_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_rcou-widget
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)
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rivercraft/panel.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rivercraft/panel.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rivercraft/widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI ("/")
rivercraft/rivercraft.php Passed 13 tests
The main PHP script in "RiverCraft" version 1.3.2 is automatically included on every request by WordPress
61 characters long description:
Rivercraft permet d'unir Wordpress et Minecraft avec JSONAPI.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin305 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 86 | 263 |
CSS | 1 | 9 | 2 | 42 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 3 | |
▷ Named functions | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/img/back_office/settings.png | 3.52KB | 0.92KB | ▼ 73.98% |