Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼222.37ms] Passed 4 tests
Server-side resources used by SmobilPay for e-commerce Gateway for Easy Digital Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.24 ▲2.39 |
Dashboard /wp-admin | 3.37 ▼0.06 | 49.02 ▼901.94 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 60.82 ▲13.33 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 98.02 ▲11.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.16 ▼1.66 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 529 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by SmobilPay for e-commerce Gateway for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.33 ▼0.04 | 2.01 ▲0.09 | 46.49 ▲4.09 |
Dashboard /wp-admin | 2,189 ▼13 | 5.62 ▼0.09 | 94.25 ▼4.84 | 41.36 ▼4.82 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.00 | 41.39 ▲5.25 | 36.83 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.09 ▲0.09 | 666.51 ▲1.91 | 75.27 ▲16.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 96.42 ▼13.30 | 44.91 ▼4.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 167× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Cache\\Adapter\\AbstractAdapter' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/symfony/cache/Adapter/ApcuAdapter.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Cache\\ItemInterface' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/symfony/cache/CacheItem.php:22
- > PHP Warning
require_once(wp-content/plugins/smobilplay-edd-gateway/vendor/camoo/enkap-oauth/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/smobilplay-edd-gateway/vendor/camoo/enkap-oauth/tests/bootstrap.php on line 7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'Enkap\\OAuth\\Model\\BaseModel' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/camoo/enkap-oauth/src/Model/Payment.php:21
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/graham-campbell/result-type/src/Error.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/smobilplay-edd-gateway/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
smobilplay-edd-gateway/smobilplay-edd-gateway.php 77% from 13 tests
The entry point to "SmobilPay for e-commerce Gateway for Easy Digital Downloads" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "2.0")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin38,999 lines of code in 475 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 384 | 5,552 | 13,664 | 28,953 |
Markdown | 46 | 2,102 | 0 | 6,613 |
JSON | 36 | 1 | 0 | 3,281 |
make | 3 | 20 | 4 | 51 |
YAML | 3 | 3 | 28 | 50 |
SQL | 1 | 0 | 0 | 29 |
XML | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 63 | |
Interfaces | 64 | |
Traits | 14 | |
Classes | 248 | |
▷ Abstract classes | 8 | 3.23% |
▷ Concrete classes | 240 | 96.77% |
▷ Final classes | 94 | 39.17% |
Methods | 1,949 | |
▷ Static methods | 412 | 21.14% |
▷ Public methods | 1,563 | 80.19% |
▷ Protected methods | 152 | 7.80% |
▷ Private methods | 234 | 12.01% |
Functions | 355 | |
▷ Named functions | 143 | 40.28% |
▷ Anonymous functions | 212 | 59.72% |
Constants | 192 | |
▷ Global constants | 8 | 4.17% |
▷ Class constants | 184 | 95.83% |
▷ Public constants | 131 | 71.20% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/e-nkap.png | 2.32KB | 2.37KB | 0.00% |