Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.28ms] Passed 4 tests
This is a short check of server-side resources used by Get Gist
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.43 ▼4.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.67 ▼3.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.53 ▼10.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.44 ▼15.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.71 ▲2.30 |
Get Gist /wp-admin/options-general.php?page=get-gist | 3.20 | 31.52 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Get Gist: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.06 | 1.80 ▼0.28 | 44.90 ▲4.16 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲0.98 | 107.76 ▼1.02 | 40.21 ▼1.82 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.01 | 34.39 ▼5.75 | 35.09 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.40 ▲0.08 | 683.21 ▲43.92 | 60.26 ▲7.54 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.08 | 119.28 ▼2.37 | 52.07 ▼3.75 |
Get Gist /wp-admin/options-general.php?page=get-gist | 844 | 2.06 | 31.80 | 34.71 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-gist/get-gist.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== get-gist ===
) - Screenshots: Please add an image for screenshot #1 (None.)
get-gist/get-gist.php Passed 13 tests
The entry point to "Get Gist" version 1.1.3 is a PHP file that has certain tags in its header comment area
115 characters long description:
A simple plugin that adds a gist shortcode for getting a single gist and the files within. It uses the Gist V3 API.
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 detected186 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 30 | 140 |
CSS | 1 | 0 | 0 | 46 |
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.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin