Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.06ms] Passed 4 tests
Analyzing server-side resources used by Git Snippets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.87 ▼10.45 |
Dashboard /wp-admin | 3.38 ▲0.07 | 53.27 ▲2.95 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.96 ▲2.32 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.66 ▲3.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.36 ▲0.96 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Git Snippets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.01 | 1.84 ▼0.02 | 42.52 ▼3.14 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.06 | 88.72 ▼14.58 | 40.28 ▼4.05 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.07 | 41.90 ▲3.06 | 35.05 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.27 ▲0.23 | 610.58 ▼97.11 | 47.83 ▼21.50 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.22 ▼0.10 | 99.98 ▼8.68 | 44.02 ▼2.61 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GitSnippets\\Admin\\Settings\\AbstractPage' not found in wp-content/plugins/git-snippets/src/Admin/Settings/General.php:13
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: git, shortcode, gitlab
git-snippets/git-snippets.php Passed 13 tests
"Git Snippets" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
79 characters long description:
With Git Snippets you can share code snippets with the world from your website.
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
There were no executable files found in this plugin852 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 236 | 544 | 847 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 22 | 33.85% |
▷ Public methods | 56 | 86.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 13.85% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin