Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼138.65ms] Passed 4 tests
A check of server-side resources used by reenio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.73 ▲6.85 |
Dashboard /wp-admin | 3.11 ▲0.05 | 43.06 ▲5.78 |
Posts /wp-admin/edit.php | 3.17 ▲0.05 | 41.70 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 91.25 ▼560.80 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 34.55 ▲3.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
reenio: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 15.77 ▲0.20 | 9.99 ▼0.50 | 44.45 ▼1.40 |
Dashboard /wp-admin | 2,993 ▲62 | 5.89 ▼0.17 | 137.64 ▲0.65 | 110.98 ▼4.58 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▼0.01 | 60.04 ▼3.46 | 87.94 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,885 ▲385 | 19.18 ▲0.37 | 382.23 ▼7.51 | 108.43 ▲1.96 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.02 ▲0.01 | 137.60 ▼6.89 | 115.87 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
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
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reenio/reenio-option-page.php:200
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reenio/reenio.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: reenio, reservation, reservation system
reenio/reenio.php Passed 13 tests
Analyzing the main PHP file in "reenio" version 1.6
77 characters long description:
Plug-in for embedding of reservation system reenio into the web presentation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin238 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 30 | 193 |
PO File | 1 | 13 | 16 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected