10% wp-xagithub-activity

Code Review | WP Xagithub Activity

WordPress plugin WP Xagithub Activity scored10%from 54 tests.

About plugin

  • Plugin page: wp-xagithub-activity
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Jan 6, 2014
  • Number of updates: 43
  • Update frequency: every 6.3 days
  • Top authors: xaviermartinezf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; XagithubWidget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.70ms] Passed 4 tests

An overview of server-side resources used by WP Xagithub Activity
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.13 ▼36.94
Dashboard /wp-admin2.10 ▼1.206.53 ▼43.99
Posts /wp-admin/edit.php2.10 ▼1.266.74 ▼50.44
Add New Post /wp-admin/post-new.php2.10 ▼3.796.77 ▼91.41
Media Library /wp-admin/upload.php2.10 ▼1.135.54 ▼31.98

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_xagithubwidget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Xagithub Activity
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.42 ▲0.521.75 ▼0.0845.79 ▼0.40
Dashboard /wp-admin2,195 ▲185.61 ▲0.0293.81 ▲4.9442.29 ▼0.96
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0137.31 ▼3.5434.38 ▼3.54
Add New Post /wp-admin/post-new.php1,534 ▲818.67 ▼4.90636.92 ▲6.4961.00 ▲6.62
Media Library /wp-admin/upload.php1,397 ▼64.25 ▲0.0397.44 ▼5.3341.44 ▼6.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; XagithubWidget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_xagithubwidget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-xagithub-activity/wp-xagithub.php:11

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
5 plugin tags: activity github, github activity, github, xagithub, atom

wp-xagithub-activity/wp-xagithub.php 92% from 13 tests

The entry point to "WP Xagithub Activity" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-xagithub-activity.php" instead of "wp-xagithub.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
Good job! No executable or dangerous file extensions detected123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131785
CSS13038

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png41.64KB4.83KB▼ 88.40%
images/github.png2.57KB1.00KB▼ 61.03%