Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.13ms] Passed 4 tests
An overview of server-side resources used by PayPRLike
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.13 ▼3.85 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.31 ▼6.44 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.25 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.51 ▼7.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.02 ▲1.24 |
PayPRLike Button /wp-admin/options-general.php?page=payprlike-options | 3.24 | 30.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_payprlike_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PayPRLike
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,036 ▲290 | 14.49 ▲0.13 | 32.20 ▲30.43 | 45.90 ▼1.67 |
Dashboard /wp-admin | 2,210 ▲22 | 4.93 ▲0.07 | 97.05 ▼21.86 | 39.06 ▼11.78 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.02 | 39.40 ▲3.64 | 35.39 ▲5.29 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.62 ▼5.40 | 584.79 ▼40.86 | 54.93 ▲0.31 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.03 | 93.79 ▼0.67 | 40.30 ▼5.76 |
PayPRLike Button /wp-admin/options-general.php?page=payprlike-options | 837 | 2.06 | 25.45 | 26.19 |
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: 7 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_payprlike_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/payprlike-button/payprlike.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/payprlike-button/views/options-page-wrapper.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/payprlike-button/class.payprlike-widget.php:6
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
payprlike-button/payprlike.php 85% from 13 tests
The primary PHP file in "PayPRLike" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payprlike-button.php" instead of "payprlike.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin501 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 62 | 16 | 225 |
CSS | 1 | 5 | 9 | 160 |
JavaScript | 1 | 19 | 35 | 116 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 12 | 70.59% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/pplpopup.png | 3.74KB | 2.51KB | ▼ 32.98% |
_inc/popup-s.png | 3.16KB | 1.83KB | ▼ 41.97% |
_inc/popup-c.png | 3.58KB | 1.96KB | ▼ 45.17% |
_inc/mypr.png | 4.38KB | 2.49KB | ▼ 43.20% |
_inc/cancel.png | 2.60KB | 1.16KB | ▼ 55.34% |