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.24MB] [CPU: ▼0.96ms] Passed 4 tests
This is a short check of server-side resources used by Documents from Git
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 43.97 ▼1.24 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.37 ▼1.40 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.07 ▲5.88 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 89.87 ▼2.67 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 38.12 ▲1.46 |
Documents from Git /wp-admin/options-general.php?page=settings_documents_from_git | 3.44 | 32.38 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Documents from Git
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.47 ▼0.93 | 4.47 ▲2.43 | 40.12 ▼13.33 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼0.10 | 102.96 ▼11.13 | 38.74 ▼9.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.05 | 39.65 ▲3.65 | 34.65 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.40 ▲0.20 | 665.24 ▼26.48 | 60.85 ▲3.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.01 | 98.37 ▼18.18 | 42.42 ▼9.21 |
Documents from Git /wp-admin/options-general.php?page=settings_documents_from_git | 946 | 2.06 | 22.95 | 30.54 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'BaseLoader' not found in wp-content/plugins/documents-from-git/includes/providers/class-gitlab-loader.php:3
- > PHP Fatal error
Uncaught Error: Class 'BaseLoader' not found in wp-content/plugins/documents-from-git/includes/providers/class-bitbucket-loader.php:3
- > PHP Fatal error
Uncaught Error: Class 'BaseLoader' not found in wp-content/plugins/documents-from-git/includes/providers/class-github-loader.php:3
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: notebook, markdown, jupyter, bitbucket, gitlab...
documents-from-git/documents-git.php 77% from 13 tests
The entry point to "Documents from Git" version 2.2.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("documents-from-git.php" instead of "documents-git.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected2,213 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 193 | 320 | 1,192 |
CSS | 3 | 212 | 3 | 1,021 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 40.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 26.32% |
▷ Protected methods | 34 | 59.65% |
▷ Private methods | 8 | 14.04% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected