Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼145.08ms] Passed 4 tests
Server-side resources used by P2 Check In
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 46.80 ▲24.09 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.03 ▼9.22 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 50.23 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.73 ▼570.95 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.41 ▼2.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by P2 Check In
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 15.81 ▼0.09 | 11.75 ▲3.76 | 46.74 ▼5.75 |
Dashboard /wp-admin | 2,970 ▲33 | 5.99 ▲0.01 | 142.61 ▼28.97 | 114.31 ▼5.35 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 68.67 ▼2.84 | 96.92 ▲9.25 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▲0.00 | 379.24 ▼36.91 | 114.47 ▲3.42 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.00 | 148.48 ▼1.93 | 127.93 ▼197.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/p2-check-in/p2-check-in.php:18
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The "Log In" button that displays before you've signed into the site.), #2 (The "I'm here!" button that will check you in. Also notice the recently checked out user faded out in the sidebar.), #3 (Once you are checked in the "I'm leaving!" button displays and will check you out.)
p2-check-in/p2-check-in.php 92% from 13 tests
This is the main PHP file of "P2 Check In" version 0.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin310 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 110 | 51 | 156 |
CSS | 1 | 18 | 4 | 110 |
PO File | 1 | 14 | 15 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 10 | |
▷ Named functions | 10 | 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.50KB | 7.55KB | ▼ 59.20% |
screenshot-2.png | 17.28KB | 6.69KB | ▼ 61.29% |
screenshot-3.png | 22.56KB | 7.93KB | ▼ 64.84% |