84% realtyna-provisioning

Code Review | Realtyna Provisioning

WordPress plugin Realtyna Provisioning scored84%from 54 tests.

About plugin

  • Plugin page: realtyna-provisio...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2018
  • Latest release: Oct 29, 2023
  • Number of updates: 11
  • Update frequency: every 174.8 days
  • Top authors: realtyna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,327 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.00MB] [CPU: ▼3.12ms] Passed 4 tests

An overview of server-side resources used by Realtyna Provisioning
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.04 ▲0.53
Dashboard /wp-admin3.31 ▲0.0046.21 ▼5.33
Posts /wp-admin/edit.php3.36 ▲0.0050.07 ▲1.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.99 ▼7.52
Media Library /wp-admin/upload.php3.23 ▲0.0036.19 ▼0.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Realtyna Provisioning
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.25 ▼0.101.90 ▼0.3238.70 ▼12.90
Dashboard /wp-admin2,217 ▲435.66 ▲0.0589.70 ▼13.2541.98 ▼0.38
Posts /wp-admin/edit.php2,120 ▲201.99 ▲0.0441.73 ▲4.8836.95 ▼2.12
Add New Post /wp-admin/post-new.php1,540 ▲1123.06 ▼0.33612.70 ▲19.2953.24 ▲0.11
Media Library /wp-admin/upload.php1,416 ▲164.22 ▼0.0599.99 ▼9.0243.38 ▲0.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/realtyna-provisioning/realtyna-provisioning.php:38

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)
Everything seems fine on the user side

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
Attributes that require attention: You can look at the official readme.txt

realtyna-provisioning/realtyna-provisioning.php Passed 13 tests

"Realtyna Provisioning" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
This is provisioning server of Realtyna products.

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 detected3,113 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP226167582,867
PO File15067138
CSS1110108

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity25.28
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods139
▷ Static methods1611.51%
▷ Public methods13395.68%
▷ Protected methods32.16%
▷ Private methods32.16%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected