Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.90ms] Passed 4 tests
A check of server-side resources used by Komparu Comparison Module
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.78 ▲1.72 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.27 ▼12.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.33 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.48 ▼13.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.08 ▲3.13 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 969 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Komparu Comparison Module
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.29 | 4.82 ▲2.98 | 39.20 ▼0.97 |
Dashboard /wp-admin | 2,206 ▲20 | 4.84 ▼0.09 | 97.79 ▼16.95 | 38.15 ▼4.33 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.06 ▲0.04 | 35.30 ▼6.52 | 33.97 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.21 ▼5.08 | 610.08 ▼62.86 | 50.51 ▼2.48 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.00 | 101.57 ▲2.28 | 41.99 ▼3.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 444× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Equal.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/lib/Twig/Extension/Optimizer.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/test/Twig/Tests/Node/Expression/ParentTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/komparu-comparison-module/vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php:12
- > PHP Fatal error
Trait 'React\\Promise\\PromiseTest\\PromisePendingTestTrait' not found in wp-content/plugins/komparu-comparison-module/vendor/react/promise/tests/PromiseTest/FullTestTrait.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/komparu-comparison-module/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/komparu-comparison-module/vendor/twig/twig/test/Twig/Tests/Node/Expression/Binary/SubTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/komparu-comparison-module/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: compare, komparu
komparu-comparison-module/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Komparu Comparison Module" version 1.0.33
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("komparu-comparison-module.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected41,887 lines of code in 703 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 553 | 6,810 | 11,880 | 33,231 |
reStructuredText | 97 | 2,455 | 2,314 | 3,558 |
Markdown | 7 | 729 | 0 | 2,788 |
C | 1 | 166 | 150 | 793 |
JSON | 9 | 0 | 0 | 711 |
JavaScript | 2 | 18 | 60 | 196 |
make | 3 | 41 | 5 | 172 |
YAML | 6 | 33 | 3 | 147 |
XML | 5 | 6 | 0 | 103 |
CSS | 2 | 9 | 0 | 97 |
Twig | 5 | 4 | 0 | 40 |
Python | 1 | 4 | 0 | 19 |
HTML | 10 | 0 | 0 | 16 |
C/C++ Header | 1 | 7 | 13 | 11 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 43 | |
Traits | 16 | |
Classes | 500 | |
▷ Abstract classes | 20 | 4.00% |
▷ Concrete classes | 480 | 96.00% |
▷ Final classes | 3 | 0.62% |
Methods | 2,771 | |
▷ Static methods | 104 | 3.75% |
▷ Public methods | 2,504 | 90.36% |
▷ Protected methods | 160 | 5.77% |
▷ Private methods | 107 | 3.86% |
Functions | 382 | |
▷ Named functions | 66 | 17.28% |
▷ Anonymous functions | 316 | 82.72% |
Constants | 54 | |
▷ Global constants | 2 | 3.70% |
▷ Class constants | 52 | 96.30% |
▷ Public constants | 52 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/assets/gfx/refresh.png | 0.63KB | 0.51KB | ▼ 19.69% |
plugin/assets/gfx/copy.png | 1.10KB | 0.20KB | ▼ 82.13% |
plugin/assets/gfx/icon.png | 1.60KB | 0.81KB | ▼ 49.60% |