10% diaspora-podlist-updater

Code Review | Diaspora Podlist Updater

WordPress plugin Diaspora Podlist Updater scored10%from 54 tests.

About plugin

  • Plugin page: diaspora-podlist-...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Feb 7, 2015
  • Latest release: Sep 10, 2018
  • Number of updates: 4
  • Update frequency: every 327.7 days
  • Top authors: Vitalie Ciubotaru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,008 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/diaspora-podlist-updater/diaspora-podlist-updater.php+47
    file_get_contents(http://podupti.me/api.php?format=json&key=4r45tg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

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

Server-side resources used by Diaspora Podlist Updater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.10 ▼0.28
Dashboard /wp-admin3.32 ▲0.0144.71 ▼3.80
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▲2.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.94 ▼9.99
Media Library /wp-admin/upload.php3.24 ▲0.0136.45 ▲1.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
dpu-podlist
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Diaspora Podlist Updater
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.76 ▲0.322.01 ▲0.3639.36 ▲2.90
Dashboard /wp-admin2,206 ▲185.77 ▲0.8897.13 ▼4.9536.80 ▼4.35
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0235.19 ▼2.1038.85 ▲4.80
Add New Post /wp-admin/post-new.php1,544 ▲2518.15 ▼5.04733.03 ▲82.3554.19 ▼3.19
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0194.12 ▼3.1540.87 ▼3.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/diaspora-podlist-updater/diaspora-podlist-updater.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === diaspora-podlist-updater === )
  • Donate link: Invalid url: ""
The official readme.txt might help

diaspora-podlist-updater/diaspora-podlist-updater.php Passed 13 tests

"Diaspora Podlist Updater" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
This plugin periodically retrieves a fresh list of active Diaspora* pods.

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
There were no executable files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102337

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin