84% post-to-gist

Code Review | Post to Gist

WordPress plugin Post to Gist scored 84% from 54 tests.

About plugin

  • Plugin page: post-to-gist
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Dec 26, 2013
  • Latest release: Dec 26, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 701 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.30 ▼3.03
Dashboard /wp-admin3.43 ▲0.1245.52 ▼1.67
Posts /wp-admin/edit.php3.54 ▲0.1851.53 ▲6.49
Add New Post /wp-admin/post-new.php5.33 ▼0.5668.28 ▼28.72
Media Library /wp-admin/upload.php3.35 ▲0.1236.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.66 ▼0.701.60 ▼0.1840.84 ▼10.12
Dashboard /wp-admin2,206 ▲155.91 ▲1.0499.91 ▼15.3738.32 ▼12.79
Posts /wp-admin/edit.php2,086 ▼02.06 ▲0.0339.63 ▲3.5835.59 ▲0.22
Add New Post /wp-admin/post-new.php1,534 ▼923.10 ▲4.71612.43 ▲4.9959.56 ▲1.09
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.0193.86 ▼11.0842.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP7131408691
Bourne Again Shell24118172
Markdown337077
Bourne Shell112647
JavaScript18041
YAML15028
XML13024

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 code0.33
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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