84% gist-amp

Code Review | oEmbed Gist Plus

WordPress plugin oEmbed Gist Plus scored84%from 54 tests.

About plugin

  • Plugin page: gist-amp
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Jul 11, 2021
  • Number of updates: 11
  • Update frequency: every 93.0 days
  • Top authors: eddydu44 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.89ms] Passed 4 tests

A check of server-side resources used by oEmbed Gist Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.25 ▼4.15
Dashboard /wp-admin3.31 ▲0.0150.56 ▲0.80
Posts /wp-admin/edit.php3.36 ▲0.0047.61 ▼6.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.02 ▼5.67
Media Library /wp-admin/upload.php3.23 ▲0.0043.06 ▲3.35

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by oEmbed Gist Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.33 ▼0.981.76 ▼0.1745.91 ▲0.05
Dashboard /wp-admin2,218 ▲215.88 ▲1.00105.56 ▼2.1238.31 ▼3.76
Posts /wp-admin/edit.php2,079 ▼272.02 ▼0.0336.29 ▼3.2531.75 ▼4.43
Add New Post /wp-admin/post-new.php1,554 ▲918.10 ▼5.06671.11 ▼19.1162.38 ▲7.16
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.05117.81 ▲3.6547.70 ▼1.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just 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/gist-amp/oembed-gist-plus.php:23

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add a description for screenshot #1 in gist-amp/assets to your readme.txt
The official readme.txt might help

gist-amp/oembed-gist-plus.php 92% from 13 tests

The entry point to "oEmbed Gist Plus" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gist-amp.php" instead of "oembed-gist-plus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1259103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin