10% wp-github-commits

Code Review | WP Github Commits

WordPress plugin WP Github Commits scored10%from 54 tests.

About plugin

  • Plugin page: wp-github-commits
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Oct 13, 2021
  • Number of updates: 22
  • Update frequency: every 143.9 days
  • Top authors: sudar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,510 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-github-commits/wp-github-commits.php+258
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.30ms] Passed 4 tests

A check of server-side resources used by WP Github Commits
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.91 ▼39.40
Dashboard /wp-admin2.05 ▼1.266.28 ▼44.50
Posts /wp-admin/edit.php2.05 ▼1.315.47 ▼43.84
Add New Post /wp-admin/post-new.php2.05 ▼3.846.29 ▼85.45
Media Library /wp-admin/upload.php2.05 ▼1.184.32 ▼31.60

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_wp-github-commits
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Github Commits
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.361.54 ▼0.1637.21 ▼6.32
Dashboard /wp-admin2,195 ▲185.61 ▲0.0793.92 ▼1.6742.05 ▲2.63
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.1539.43 ▲2.3837.01 ▲4.82
Add New Post /wp-admin/post-new.php6,240 ▲4,71225.96 ▲2.82855.88 ▲175.6752.55 ▲2.64
Media Library /wp-admin/upload.php1,403 ▲94.19 ▲0.0199.66 ▼1.4244.17 ▼0.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-github-commits/wp-github-commits.php+258
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_wp-github-commits

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/wp-github-commits/wp-github-commits.php:255

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: github, commits, widget

wp-github-commits/wp-github-commits.php 85% from 13 tests

The principal PHP file in "WP Github Commits" v. 0.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected241 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP276106241

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity12.00
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin