84% fancy-github-activity

Code Review | Fancy Github Activity

WordPress plugin Fancy Github Activity scored84%from 54 tests.

About plugin

  • Plugin page: fancy-github-acti...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: May 29, 2016
  • Latest release: Feb 8, 2018
  • Number of updates: 6
  • Update frequency: every 103.7 days
  • Top authors: stopspazzing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /922 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.20ms] Passed 4 tests

This is a short check of server-side resources used by Fancy Github Activity
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.15 ▼5.36
Dashboard /wp-admin3.31 ▲0.0142.09 ▼7.37
Posts /wp-admin/edit.php3.36 ▲0.0145.20 ▲2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.75 ▼6.26
Media Library /wp-admin/upload.php3.24 ▲0.0136.14 ▲3.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Fancy Github Activity: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.38 ▲0.132.47 ▲0.7640.84 ▼2.48
Dashboard /wp-admin2,192 ▲155.58 ▼0.0993.91 ▲6.6341.50 ▲5.27
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0339.47 ▼3.5638.58 ▲3.64
Add New Post /wp-admin/post-new.php1,531 ▼523.36 ▲0.32570.71 ▼20.8359.66 ▲3.79
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0497.75 ▲3.0741.18 ▲1.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-github-activity/fancy-github-activity.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: feed, activity, github, fancy

fancy-github-activity/fancy-github-activity.php Passed 13 tests

"Fancy Github Activity" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Displays Github activity in a fancy way via shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin597 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24627307
CSS24626241
PHP15830
Markdown211019

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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin