84% rendr

Code Review | Rendr

WordPress plugin Rendr scored84%from 54 tests.

About plugin

  • Plugin page: rendr
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Apr 4, 2023
  • Number of updates: 131
  • Update frequency: every 5.0 days
  • Top authors: rendrdelivery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,019 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: ▼5.24ms] Passed 4 tests

An overview of server-side resources used by Rendr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.21 ▲3.60
Dashboard /wp-admin3.31 ▲0.0152.04 ▼1.88
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▼1.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.84 ▼13.60
Media Library /wp-admin/upload.php3.23 ▲0.0034.62 ▼4.30

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Rendr
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.26 ▼1.032.10 ▲0.4942.67 ▲4.80
Dashboard /wp-admin2,209 ▲245.92 ▲0.0294.26 ▼8.7236.36 ▼8.75
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0133.92 ▼0.9135.01 ▼0.37
Add New Post /wp-admin/post-new.php1,533 ▲1923.36 ▲5.66673.78 ▼8.3947.43 ▼18.81
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0299.08 ▼8.1144.52 ▼2.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/rendr/vendor/psr/log/Psr/Log/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'DVDoug\\BoxPacker\oBoxesAvailableException' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/src/ItemTooLargeException.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/rendr/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/src/Packer.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/src/OrientatedItemSorter.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/tests/ItemTooLargeExceptionTest.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Behat\\Behat\\Context\\Context' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/features/bootstrap/PackerContext.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/src/WeightRedistributor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/tests/WorkingVolumeTest.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'DVDoug\\BoxPacker\\Item' not found in wp-content/plugins/rendr/vendor/dvdoug/boxpacker/tests/Test/TestItem.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: woocommerce, rendr, shipping

rendr/rendr.php 92% from 13 tests

The entry point to "Rendr" version 1.4.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected9,732 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
PHP711,4663,0235,815
JavaScript462293,157
JSON400202
Cucumber2200148
reStructuredText788183136
CSS2150120
Markdown222061
Python1399240
YAML11025
XML13016
make14610
INI1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.47
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces6
Traits2
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes11.92%
Methods412
▷ Static methods276.55%
▷ Public methods36989.56%
▷ Protected methods51.21%
▷ Private methods389.22%
Functions18
▷ Named functions316.67%
▷ Anonymous functions1583.33%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.17MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/next.png1.32KB1.58KB0.00%
assets/images/RendrWebsitePopUpDesktop.png174.92KB49.68KB▼ 71.60%
assets/images/prev.png1.33KB1.59KB0.00%
assets/images/close.png0.27KB0.29KB0.00%