Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.81ms] Passed 4 tests
This is a short check of server-side resources used by GitStatusPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.70 ▼0.73 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.63 ▼21.95 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.19 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 78.42 ▼10.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.78 ▲3.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
gitstatuspress_plugins_git |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GitStatusPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.53 ▼1.14 | 8.64 ▲6.72 | 41.34 ▼5.61 |
Dashboard /wp-admin | 2,224 ▲36 | 4.85 ▼0.96 | 100.97 ▼18.88 | 42.87 ▼5.31 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.00 ▼0.03 | 35.94 ▲1.85 | 31.67 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 23.44 ▲0.18 | 648.72 ▲53.37 | 51.12 ▼9.91 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.23 ▼0.04 | 104.32 ▲5.30 | 45.13 ▲0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- gitstatuspress_plugins_git
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gitstatuspress/admin/partials/gitstatuspress-admin-display.php
- > /wp-content/plugins/gitstatuspress/public/partials/gitstatuspress-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: plugins, version, last pulled, branch, git...
gitstatuspress/gitstatuspress.php Passed 13 tests
The entry point to "GitStatusPress" version 1.0.1 is a PHP file that has certain tags in its header comment area
139 characters long description:
Get an Admin Toolbar menu that contains all the installed plugin that are installed using git along with relevant information for each one.
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 detected364 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 185 | 583 | 334 |
CSS | 2 | 6 | 8 | 24 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 29 | 80.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 19.44% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin