84% automated-remote-reposting-source

Code Review | Automated Remote Reposting

WordPress plugin Automated Remote Reposting scored84%from 54 tests.

About plugin

  • Plugin page: automated-remote-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.4
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Nov 8, 2019
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: somedev123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.92ms] Passed 4 tests

This is a short check of server-side resources used by Automated Remote Reposting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.23 ▼1.09
Dashboard /wp-admin3.34 ▼0.0046.58 ▼13.71
Posts /wp-admin/edit.php3.39 ▲0.0443.38 ▼2.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0478.08 ▼6.35
Media Library /wp-admin/upload.php3.27 ▲0.0437.00 ▲5.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Automated Remote Reposting
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.22 ▼1.201.67 ▼0.1644.22 ▲0.04
Dashboard /wp-admin2,218 ▲304.83 ▼0.05101.44 ▼14.0541.93 ▼0.79
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.0034.58 ▼0.9133.10 ▲2.80
Add New Post /wp-admin/post-new.php1,545 ▲923.16 ▼0.00691.44 ▲45.9745.99 ▼15.59
Media Library /wp-admin/upload.php1,400 ▲184.20 ▼0.0198.33 ▲4.9340.40 ▼3.66

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/automated-remote-reposting-source/auto-remote-repost.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: reposting, automated reposting, posting automation, remote posting

automated-remote-reposting-source/auto-remote-repost.php 85% from 13 tests

Analyzing the main PHP file in "Automated Remote Reposting" version 1.0.1
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("automated-remote-reposting-source.php" instead of "auto-remote-repost.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 detected288 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP173107288

PHP code Passed 2 tests

A short 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.30
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin