Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼7.79ms] Passed 4 tests
A check of server-side resources used by Post to Gist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.30 ▼3.03 |
Dashboard /wp-admin | 3.43 ▲0.12 | 45.52 ▼1.67 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.53 ▲6.49 |
Add New Post /wp-admin/post-new.php | 5.33 ▼0.56 | 68.28 ▼28.72 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.17 ▲2.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post to Gist
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.66 ▼0.70 | 1.60 ▼0.18 | 40.84 ▼10.12 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.04 | 99.91 ▼15.37 | 38.32 ▼12.79 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.06 ▲0.03 | 39.63 ▲3.58 | 35.59 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▼9 | 23.10 ▲4.71 | 612.43 ▲4.99 | 59.56 ▲1.09 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▲0.01 | 93.86 ▼11.08 | 42.36 ▼2.73 |
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
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Post_To_Gist_Component_Interface' not found in wp-content/plugins/post-to-gist/includes/setting.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Post_To_Gist_Component_Interface' not found in wp-content/plugins/post-to-gist/includes/metabox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-to-gist/post-to-gist.php:166
- > PHP Fatal error
Uncaught Error: Interface 'Post_To_Gist_Component_Interface' not found in wp-content/plugins/post-to-gist/includes/client.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% 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
3 plugin tags: github, post, gist
post-to-gist/post-to-gist.php 92% from 13 tests
This is the main PHP file of "Post to Gist" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,080 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 131 | 408 | 691 |
Bourne Again Shell | 2 | 41 | 18 | 172 |
Markdown | 3 | 37 | 0 | 77 |
Bourne Shell | 1 | 12 | 6 | 47 |
JavaScript | 1 | 8 | 0 | 41 |
YAML | 1 | 5 | 0 | 28 |
XML | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin