84% get-gist

Code Review | Get Gist

WordPress plugin Get Gist scored 84% from 54 tests.

About plugin

  • Plugin page: get-gist
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Feb 26, 2014
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 784 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.43 ▼4.92
Dashboard /wp-admin3.31 ▲0.0143.67 ▼3.05
Posts /wp-admin/edit.php3.36 ▲0.0142.53 ▼10.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.44 ▼15.11
Media Library /wp-admin/upload.php3.23 ▲0.0136.71 ▲2.30
Get Gist /wp-admin/options-general.php?page=get-gist3.2031.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.061.80 ▼0.2844.90 ▲4.16
Dashboard /wp-admin2,210 ▲225.90 ▲0.98107.76 ▼1.0240.21 ▼1.82
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0134.39 ▼5.7535.09 ▲1.78
Add New Post /wp-admin/post-new.php1,522 ▼1123.40 ▲0.08683.21 ▲43.9260.26 ▲7.54
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.08119.28 ▼2.3752.07 ▼3.75
Get Gist /wp-admin/options-general.php?page=get-gist8442.0631.8034.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

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.)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP13630140
CSS10046

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 code0.26
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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