90% wpartisan-multisite-crossposter

Code Review | WPArtisan Multisite Crossposter

WordPress plugin WPArtisan Multisite Crossposter scored90%from 54 tests.

About plugin

  • Plugin page: wpartisan-multisi...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.3
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Nov 7, 2017
  • Number of updates: 24
  • Update frequency: every 21.8 days
  • Top authors: ozthegreat (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,946 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
Installer ran successfully

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

This is a short check of server-side resources used by WPArtisan Multisite Crossposter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.46 ▼0.21
Dashboard /wp-admin3.31 ▲0.0048.58 ▼6.77
Posts /wp-admin/edit.php3.36 ▲0.0049.69 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.47 ▼3.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.97 ▼9.16

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WPArtisan Multisite Crossposter: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.211.67 ▼0.4443.37 ▼2.19
Dashboard /wp-admin2,195 ▲215.62 ▼0.0587.25 ▼5.3040.04 ▼1.58
Posts /wp-admin/edit.php2,103 ▼02.00 ▲0.0340.22 ▲2.7535.10 ▲1.16
Add New Post /wp-admin/post-new.php1,531 ▼621.03 ▲2.76674.37 ▲28.7447.20 ▼22.18
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.0597.61 ▼7.6944.03 ▼1.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wpmu, multisite, crossposting, posts

wpartisan-multisite-crossposter/wpa-multisite-crossposter.php 92% from 13 tests

The main PHP file in "WPArtisan Multisite Crossposter" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpartisan-multisite-crossposter.php" instead of "wpa-multisite-crossposter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected9,918 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript502,3906139,011
PHP4208476464
CSS2570426
YAML15017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity35.00
▷ Minimum class complexity22.00
▷ Maximum class complexity48.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected