84% page-siblings

Code Review | Page Siblings

WordPress plugin Page Siblings scored84%from 54 tests.

About plugin

  • Plugin page: page-siblings
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 2, 2012
  • Latest release: Aug 13, 2018
  • Number of updates: 14
  • Update frequency: every 150.7 days
  • Top authors: iamntz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,997 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: ▼3.44ms] Passed 4 tests

An overview of server-side resources used by Page Siblings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.87 ▲4.62
Dashboard /wp-admin3.31 ▲0.0151.83 ▲4.37
Posts /wp-admin/edit.php3.37 ▲0.0152.04 ▼4.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.21 ▼14.62
Media Library /wp-admin/upload.php3.24 ▲0.0137.80 ▲1.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Siblings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.76 ▲0.1443.27 ▲0.34
Dashboard /wp-admin2,189 ▲195.63 ▲0.0495.85 ▼3.7642.39 ▲1.41
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0335.64 ▼6.4332.22 ▼9.27
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.68674.77 ▼6.1850.66 ▼10.60
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.08103.50 ▼4.2543.11 ▼3.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/page-siblings/page-siblings.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Page Siblings metabox)
You can take inspiration from this readme.txt

page-siblings/page-siblings.php Passed 13 tests

The main PHP file in "Page Siblings" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
113 characters long description:
Add a metabox with all page edit (and any other hierarchal post types) that display an edit link to its siblings.

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
There were no executable files found in this plugin116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13028116

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods111.11%
▷ Private methods333.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.90KB3.02KB▼ 48.83%