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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.21 ▲3.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.04 ▼1.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.83 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.84 ▼13.60 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.26 ▼1.03 | 2.10 ▲0.49 | 42.67 ▲4.80 |
Dashboard /wp-admin | 2,209 ▲24 | 5.92 ▲0.02 | 94.26 ▼8.72 | 36.36 ▼8.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 33.92 ▼0.91 | 35.01 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.36 ▲5.66 | 673.78 ▼8.39 | 47.43 ▼18.81 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.22 ▼0.02 | 99.08 ▼8.11 | 44.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,466 | 3,023 | 5,815 |
JavaScript | 4 | 62 | 29 | 3,157 |
JSON | 4 | 0 | 0 | 202 |
Cucumber | 2 | 20 | 0 | 148 |
reStructuredText | 7 | 88 | 183 | 136 |
CSS | 2 | 15 | 0 | 120 |
Markdown | 2 | 22 | 0 | 61 |
Python | 1 | 39 | 92 | 40 |
YAML | 1 | 1 | 0 | 25 |
XML | 1 | 3 | 0 | 16 |
make | 1 | 4 | 6 | 10 |
INI | 1 | 0 | 0 | 2 |
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 code | 0.24 |
Average class complexity | 9.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 6 | |
Traits | 2 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 1 | 1.92% |
Methods | 412 | |
▷ Static methods | 27 | 6.55% |
▷ Public methods | 369 | 89.56% |
▷ Protected methods | 5 | 1.21% |
▷ Private methods | 38 | 9.22% |
Functions | 18 | |
▷ Named functions | 3 | 16.67% |
▷ Anonymous functions | 15 | 83.33% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |
assets/images/RendrWebsitePopUpDesktop.png | 174.92KB | 49.68KB | ▼ 71.60% |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |