Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.96ms] Passed 4 tests
Server-side resources used by WP-Bookacamp
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.86 ▼4.14 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.50 ▼12.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.96 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.61 ▼3.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.93 ▲4.89 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Bookacamp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.18 ▼1.22 | 1.61 ▼0.30 | 39.63 ▼4.17 |
Dashboard /wp-admin | 2,235 ▲50 | 6.05 ▲0.20 | 108.96 ▲0.66 | 41.05 ▲1.87 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.03 ▲0.02 | 39.18 ▼5.77 | 35.10 ▼1.87 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,834 | 28.03 ▲4.93 | 852.92 ▲213.63 | 36.27 ▼15.73 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.22 ▲0.01 | 95.74 ▼4.78 | 42.92 ▼0.02 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bookacamp/admin/partials/wp-bookacamp-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: events, camps, bookacamp, book-a-camp, vacation...
bookacamp/wp-bookacamp.php 77% from 13 tests
The primary PHP file in "WP-Bookacamp" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("bookacamp.php" instead of "wp-bookacamp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected803 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 185 | 674 | 568 |
JavaScript | 2 | 17 | 27 | 223 |
CSS | 1 | 2 | 4 | 11 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 30 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 28.57% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/bookacamp.png | 20.93KB | 12.54KB | ▼ 40.07% |
assets/screenshot-1.png | 54.79KB | 20.55KB | ▼ 62.50% |