Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼291.85ms] Passed 4 tests
A check of server-side resources used by Add Contributors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 52.50 ▲2.70 |
Dashboard /wp-admin | 3.45 ▲0.05 | 34.33 ▼0.78 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 39.58 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.04 | 96.22 ▼1,170.01 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 25.36 ▲1.57 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Add Contributors
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,765 ▲12 | 15.79 ▲0.09 | 5.92 ▼0.44 | 2.04 ▼0.96 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▲0.00 | 117.72 ▼28.89 | 155.74 ▼11.43 |
Posts /wp-admin/edit.php | 2,691 ▲34 | 3.24 ▲0.01 | 62.94 ▼5.64 | 141.67 ▼11.01 |
Add New Post /wp-admin/post-new.php | 1,697 ▲36 | 16.62 ▲0.51 | 420.44 ▲5.87 | 170.11 ▲9.44 |
Media Library /wp-admin/upload.php | 1,701 ▼0 | 5.45 ▼0.07 | 147.32 ▲13.00 | 191.99 ▲3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/add-contributors/ict101s-contributors.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: collaboration, list, contributors, helpers, authors
add-contributors/ict101s-contributors.php 85% from 13 tests
"Add Contributors" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- 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: Name the main plugin file the same as the plugin slug ("add-contributors.php" instead of "ict101s-contributors.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected235 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 45 | 216 | 186 |
PO File | 1 | 6 | 8 | 25 |
CSS | 1 | 6 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 5 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 30.77% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 33.49KB | 17.06KB | ▼ 49.06% |
assets/icon-128x128.png | 29.68KB | 6.55KB | ▼ 77.95% |
assets/screenshot-2.png | 54.40KB | 24.33KB | ▼ 55.28% |
assets/banner-772x250.png | 185.54KB | 85.58KB | ▼ 53.88% |