79% wp-orphanage-extended

Code Review | WP-Orphanage Extended

WordPress plugin WP-Orphanage Extended scored 79% from 54 tests.

About plugin

  • Plugin page: wp-orphanage-exte...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2012
  • Latest release: Apr 6, 2023
  • Number of updates: 10
  • Update frequency: every 408.6 days
  • Top authors: meloniq (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 5,822 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by WP-Orphanage Extended
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.02 ▼8.09
Dashboard /wp-admin3.31 ▲0.0144.72 ▼2.13
Posts /wp-admin/edit.php3.36 ▲0.0145.53 ▲1.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.31 ▲2.31
Media Library /wp-admin/upload.php3.24 ▲0.0134.07 ▲0.28
WP Orphanage Extended /wp-admin/options-general.php?page=wp-orphanage-extended3.2531.46

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
wporphanageex_role
theysaidso_admin_options
wporphanageex_prefixes
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WP-Orphanage Extended: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.19 ▼1.104.65 ▲2.7339.67 ▼3.95
Dashboard /wp-admin2,210 ▲225.83 ▲0.94106.30 ▼9.7738.52 ▼3.85
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0438.62 ▲3.1934.57 ▲3.05
Add New Post /wp-admin/post-new.php1,537 ▲423.16 ▲0.09569.80 ▼69.9948.96 ▼0.52
Media Library /wp-admin/upload.php1,392 ▲44.18 ▲0.0695.38 ▼2.8541.96 ▼1.44
WP Orphanage Extended /wp-admin/options-general.php?page=wp-orphanage-extended8682.0527.4031.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • wporphanageex_role
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • wporphanageex_prefixes
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-orphanage-extended/wp-orphanage-extended.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-orphanage-extended/wp-orphanage-extended-options.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: shared user table, custom_user_table, custom_user_meta_table, users

wp-orphanage-extended/wp-orphanage-extended.php Passed 13 tests

"WP-Orphanage Extended" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
133 characters long description:
Plugin to promote users with no roles set (the orphans) to the role from other blog where they registered or to default if any found.

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
No dangerous file extensions were detected179 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24770134
PO File1152745

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin