84% multisite-network-repost

Code Review | Multisite Network Repost

WordPress plugin Multisite Network Repost scored 84% from 54 tests.

About plugin

  • Plugin page: multisite-network...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: May 15, 2020
  • Latest release: May 16, 2020
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: sam2kb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.15ms] Passed 4 tests

Analyzing server-side resources used by Multisite Network Repost
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.12 ▲1.29
Dashboard /wp-admin3.31 ▲0.0045.56 ▼7.49
Posts /wp-admin/edit.php3.36 ▲0.0049.13 ▲6.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.22 ▼17.85
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼0.55

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Network Repost
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.34 ▼1.034.05 ▲2.1042.88 ▼5.56
Dashboard /wp-admin2,200 ▲125.80 ▲0.94100.94 ▼13.9540.09 ▼7.16
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.2036.84 ▲1.1635.85 ▲1.44
Add New Post /wp-admin/post-new.php1,533 ▼923.35 ▲5.04656.11 ▲53.8155.58 ▲7.59
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0293.70 ▼6.4039.78 ▼3.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/multisite-network-repost/multisite-network-repost.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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: You can look at the official readme.txt

multisite-network-repost/multisite-network-repost.php Passed 13 tests

The principal PHP file in "Multisite Network Repost" v. 1.0.0 is loaded by WordPress automatically on each request
124 characters long description:
Repost your stories to selected sites in the multisite network, preserving attachments, custom fields, categories, tags etc.

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
Everything looks great! No dangerous files found in this plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13140140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin