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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼180.44ms] Passed 4 tests
An overview of server-side resources used by Partnify Partner Plugin WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 28.19 ▲3.72 |
Dashboard /wp-admin | 3.15 ▲0.08 | 42.52 ▲0.45 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 34.20 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 72.06 ▼721.75 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 22.22 ▼2.10 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wp_partnify_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Partnify Partner Plugin WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,696 ▲95 | 15.52 ▼0.34 | 11.18 ▲5.94 | 74.77 ▼3.72 |
Dashboard /wp-admin | 2,958 ▲59 | 6.21 ▲0.03 | 114.50 ▼14.67 | 187.32 ▲20.91 |
Posts /wp-admin/edit.php | 2,770 ▲27 | 3.13 ▼0.10 | 64.28 ▲1.29 | 144.74 ▲5.68 |
Add New Post /wp-admin/post-new.php | 1,549 ▼2,264 | 16.18 ▼2.73 | 308.52 ▼140.82 | 182.36 ▲15.35 |
Media Library /wp-admin/upload.php | 1,778 ▲29 | 5.56 ▲0.06 | 123.61 ▼17.51 | 200.82 ▲16.85 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_wp_partnify_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/partnify/inc/admin/admin-assets.php:11
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: marketing, saas, partnify integrations, partner, partnify...
partnify/partnify.php Passed 13 tests
The main file in "Partnify Partner Plugin WordPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
118 characters long description:
Partnify for WordPress by Partnify. Inserts via a widget selectable display ads to your WordPress site to earn income.
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 detected546 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 77 | 129 | 353 |
JavaScript | 3 | 25 | 30 | 125 |
CSS | 1 | 14 | 0 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo-40.png | 4.44KB | 1.92KB | ▼ 56.66% |
assets/images/logo.png | 1.79KB | 0.86KB | ▼ 52.18% |