83% parent-page-link

Code Review | Parent Page Link

WordPress plugin Parent Page Link scored 83% from 54 tests.

About plugin

  • Plugin page: parent-page-link
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.0
  • WordPress version: 6.3.1
  • First release: Nov 19, 2017
  • Latest release: Nov 19, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 674 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 successfully, without throwing any errors or notices

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

Server-side resources used by Parent Page Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.33 ▼3.66
Dashboard /wp-admin3.31 ▲0.0144.33 ▼4.12
Posts /wp-admin/edit.php3.36 ▲0.0048.12 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.67 ▼15.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.61 ▼3.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Parent Page Link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.131.80 ▼0.4940.54 ▼7.91
Dashboard /wp-admin2,206 ▲184.85 ▼0.10107.39 ▼3.9138.44 ▼4.97
Posts /wp-admin/edit.php2,086 ▼62.02 ▼0.0239.44 ▼1.7834.43 ▼1.14
Add New Post /wp-admin/post-new.php1,549 ▲2918.22 ▼4.88604.37 ▼45.2267.07 ▲4.02
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0194.36 ▼16.7040.97 ▼6.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/parent-page-link/page-parent.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: parent, backlink, subpages, page, link

parent-page-link/page-parent.php 77% from 13 tests

This is the main PHP file of "Parent Page Link" version 0.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("parent-page-link.php" instead of "page-parent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin