84% concat-parent-page-slugs

Code Review | Concat Parent Page Slugs

WordPress plugin Concat Parent Page Slugs scored84%from 54 tests.

About plugin

  • Plugin page: concat-parent-pag...
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Oct 27, 2017
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: nashiko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Concat Parent Page Slugs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0053.30 ▲8.61
Dashboard /wp-admin3.32 ▲0.0152.08 ▲1.94
Posts /wp-admin/edit.php3.37 ▲0.0152.99 ▲1.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.16 ▼11.58
Media Library /wp-admin/upload.php3.24 ▲0.0141.29 ▲5.65
Concat Parent Page Slugs /wp-admin/options-general.php?page=concat-parent-page-slugs3.2135.29

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Concat Parent Page Slugs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.152.27 ▼1.1042.21 ▲2.38
Dashboard /wp-admin2,199 ▲225.62 ▲0.0584.87 ▼9.7338.27 ▼3.39
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0433.25 ▼3.1435.01 ▼0.69
Add New Post /wp-admin/post-new.php1,531 ▲523.15 ▼0.66665.20 ▲15.4571.52 ▲7.50
Media Library /wp-admin/upload.php1,398 ▼54.19 ▼0.0298.70 ▼7.7343.18 ▼1.76
Concat Parent Page Slugs /wp-admin/options-general.php?page=concat-parent-page-slugs1,0092.0235.0431.37

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/concat-parent-page-slugs/concat-parent-page-slugs.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: slug, template, concat, parent, page...

concat-parent-page-slugs/concat-parent-page-slugs.php 92% from 13 tests

The entry point to "Concat Parent Page Slugs" version 0.5.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected424 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4111102357
PO File1111345
Sass15021
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.25
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods626.09%
▷ Public methods1669.57%
▷ Protected methods00.00%
▷ Private methods730.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.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
No PNG files were detected