Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.19ms] Passed 4 tests
An overview of server-side resources used by Earn from Shoppydoo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.32 ▼0.05 |
Dashboard /wp-admin | 3.41 ▲0.07 | 50.09 ▼10.38 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.81 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 100.29 ▲2.97 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 38.17 ▼1.31 |
Earn from Shoppydoo /wp-admin/options-general.php?page=shoppydoowp-options | 3.31 | 40.95 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Earn from Shoppydoo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 14.21 ▼0.02 | 1.92 ▼0.04 | 41.59 ▼3.49 |
Dashboard /wp-admin | 2,193 ▲13 | 5.57 ▼0.08 | 85.84 ▼4.36 | 37.97 ▼2.74 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.05 | 40.13 ▲3.52 | 35.25 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,547 ▲20 | 18.30 ▼4.70 | 598.32 ▼107.31 | 71.50 ▲16.28 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.19 ▼0.05 | 104.06 ▼9.12 | 46.36 ▼3.43 |
Earn from Shoppydoo /wp-admin/options-general.php?page=shoppydoowp-options | 1,024 | 2.02 | 23.67 | 43.26 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shoppydoowp-options
- > Notice in wp-content/plugins/earnfrom-shoppydoo/tmpl/admin-shoppydoo.php+64
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 34× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/earnfrom-shoppydoo/tmpl/tag-creator-window.php:1
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 14
- > PHP Fatal error
require_once(): Failed opening required '../bbplanetwp.php' (include_path='.:/usr/share/php') in wp-content/plugins/earnfrom-shoppydoo/test/testPlugin.class.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/earnfrom-shoppydoo/test/testParser.php:21
- > PHP Warning
mysqli::__construct(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 17
- > PHP Warning
mysqli::__construct(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 17
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 14
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/earnfrom-shoppydoo/test/fakeWpdb.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_url() in wp-content/plugins/earnfrom-shoppydoo/tmpl/tag-creator.php:2
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: Plugin contributors not specified
earnfrom-shoppydoo/earnfromsd.php 92% from 13 tests
The primary PHP file in "Earn from Shoppydoo" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("earnfrom-shoppydoo.php" instead of "earnfromsd.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,143 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 232 | 240 | 1,143 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 64 | 92.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.25% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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
No PNG images were found in this plugin