Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.00ms] Passed 4 tests
Analyzing server-side resources used by Takeads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.92 ▲2.23 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.78 ▲2.68 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 49.32 ▲4.04 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.09 ▼4.94 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.97 ▲5.18 |
MonetizeLink settings /wp-admin/options-general.php?page=monetizelink-setting | 3.33 | 34.27 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Takeads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.61 ▼0.75 | 1.72 ▲0.04 | 43.22 ▲0.38 |
Dashboard /wp-admin | 2,230 ▲42 | 5.83 ▲0.89 | 100.65 ▼4.83 | 41.20 ▼0.88 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.03 ▼0.01 | 36.86 ▼0.14 | 35.62 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 18.16 ▼4.95 | 622.24 ▼79.54 | 51.09 ▼4.96 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.30 ▲0.07 | 96.94 ▼5.71 | 43.77 ▲0.44 |
MonetizeLink settings /wp-admin/options-general.php?page=monetizelink-setting | 889 | 2.05 | 25.00 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Ajax.php:4
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Config.php:4
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Assets.php:4
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Front.php:4
- > PHP Fatal error
Uncaught Error: Class 'MonetizeLinkPlugin\\MLP_Base' not found in wp-content/plugins/monetize-link/src/MLP_Popup.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in monetize-link/assets to your readme.txt
monetize-link/monetizelink-plugin.php 85% from 13 tests
The main file in "Takeads" v. 1.0.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("monetize-link.php" instead of "monetizelink-plugin.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,135 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 273 | 187 | 919 |
CSS | 1 | 3 | 4 | 122 |
JavaScript | 1 | 6 | 0 | 54 |
JSON | 2 | 0 | 0 | 22 |
SVG | 1 | 0 | 0 | 18 |
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.34 |
Average class complexity | 9.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 20 | 31.75% |
▷ Public methods | 61 | 96.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.17% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.86MB with 0.39MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner.png | 439.63KB | 224.69KB | ▼ 48.89% |
assets/icon-128x128.png | 1.68KB | 1.03KB | ▼ 38.84% |
assets/banner-1544x500.png | 439.63KB | 224.69KB | ▼ 48.89% |