94% persistent-forking

Code Review | Persistent Forking (WordPress plugin)

WordPress plugin Persistent Forking (WordPress plugin) scored 94% from 54 tests.

About plugin

  • Plugin page: persistent-forking
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 5.8.1
  • First release: Oct 6, 2015
  • Latest release: Dec 16, 2015
  • Number of updates: 6
  • Update frequency: every 12.8 days
  • Top authors: UUDigitalHumanitiesLab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼130.34ms] Passed 4 tests

Analyzing server-side resources used by Persistent Forking (WordPress plugin)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0845.91 ▲4.29
Dashboard /wp-admin3.10 ▲0.0540.31 ▲0.22
Posts /wp-admin/edit.php3.15 ▲0.0540.45 ▼0.50
Add New Post /wp-admin/post-new.php5.46 ▲0.03118.88 ▼525.36
Media Library /wp-admin/upload.php3.04 ▲0.0436.37 ▲5.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Persistent Forking (WordPress plugin)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,826 ▲25417.69 ▲2.2229.74 ▲18.4049.45 ▼7.02
Dashboard /wp-admin2,973 ▲425.92 ▼0.04139.98 ▼31.14113.75 ▼5.57
Posts /wp-admin/edit.php2,758 ▲222.70 ▲0.0166.89 ▼2.8193.30 ▼1.81
Add New Post /wp-admin/post-new.php1,612 ▲3117.34 ▼0.56470.21 ▲78.48141.57 ▲31.39
Media Library /wp-admin/upload.php1,807 ▼35.07 ▲0.03164.41 ▼6.95135.92 ▲10.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/persistent-forking/templates/admin_metabox.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/persistent-forking/persistent-forking.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/persistent-forking/templates/public_fork_box.php:11
    • > PHP Notice
      Undefined index: post in wp-content/plugins/persistent-forking/templates/admin_metabox.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/persistent-forking/templates/admin_metabox.php:7

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: forking, posts, forks

persistent-forking/persistent-forking.php Passed 13 tests

The main PHP file in "Persistent Forking (WordPress plugin)" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
98 characters long description:
Enable contributors to create permanent forks of existing posts.Visualise the family of any fork.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected637 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings