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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼294.63ms] Passed 4 tests
Server-side resources used by Gitium
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.41 | 61.86 ▲13.20 |
Dashboard /wp-admin | 3.77 ▲0.37 | 38.96 ▲4.68 |
Posts /wp-admin/edit.php | 4.06 ▲0.42 | 43.80 ▲1.74 |
Add New Post /wp-admin/post-new.php | 7.33 ▲0.33 | 101.49 ▼1,179.59 |
Media Library /wp-admin/upload.php | 3.71 ▲0.42 | 27.73 ▼5.34 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Gitium
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲35 | 15.92 ▼0.18 | 5.75 ▼0.60 | 2.77 ▲0.04 |
Dashboard /wp-admin | 2,917 ▲62 | 6.12 ▼0.02 | 123.32 ▼18.98 | 182.44 ▲24.18 |
Posts /wp-admin/edit.php | 2,717 ▲23 | 3.25 ▲0.02 | 66.68 ▼0.85 | 154.06 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,679 ▼32 | 16.13 ▼5.21 | 405.36 ▼56.18 | 156.91 ▼5.20 |
Media Library /wp-admin/upload.php | 1,718 ▲26 | 5.58 ▲0.05 | 126.94 ▼20.53 | 210.33 ▲28.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Gitium_Menu' not found in wp-content/plugins/gitium/inc/class-gitium-submenu-settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'Gitium_Menu' not found in wp-content/plugins/gitium/inc/class-gitium-submenu-commits.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/gitium/gitium.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gitium/inc/class-gitium-admin.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gitium/functions.php:420
- > PHP Fatal error
Uncaught Error: Class 'Gitium_Menu' not found in wp-content/plugins/gitium/inc/class-gitium-submenu-configure.php:18
- > PHP Fatal error
Uncaught Error: Class 'Gitium_Menu' not found in wp-content/plugins/gitium/inc/class-gitium-submenu-status.php:18
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gitium/inc/class-git-wrapper.php on line 661
- > PHP Fatal error
Uncaught Error: Class 'Gitium_Menu' not found in wp-content/plugins/gitium/inc/class-gitium-menu-bubble.php:18
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gitium/gitium.php Passed 13 tests
The primary PHP file in "Gitium" version 1.0.3 is used by WordPress to initiate all plugin functionality
49 characters long description:
Keep all your code on git version control system.
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
Success! There were no dangerous files found in this plugin2,667 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 377 | 304 | 1,980 |
PO File | 2 | 198 | 232 | 654 |
SVG | 1 | 0 | 1 | 25 |
Bourne Shell | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 18.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 78.07% |
▷ Protected methods | 3 | 2.63% |
▷ Private methods | 22 | 19.30% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gitium.png | 0.53KB | 0.67KB | 0.00% |