Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'Marketeer' not found
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.87ms] Passed 4 tests
Server-side resources used by Marketeer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 32.29 ▲9.72 |
Dashboard /wp-admin | 3.09 ▲0.04 | 46.44 ▼1.18 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 47.89 ▲2.64 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.69 ▼565.51 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 35.12 ▲0.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Marketeer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 16.30 ▲0.30 | 8.76 ▼1.08 | 46.86 ▲0.52 |
Dashboard /wp-admin | 2,982 ▲48 | 5.93 ▼0.03 | 140.05 ▼24.91 | 129.52 ▲22.06 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.72 ▲0.02 | 64.40 ▼7.16 | 80.16 ▼9.36 |
Add New Post /wp-admin/post-new.php | 1,511 ▼161 | 18.85 ▲0.02 | 399.52 ▲1.75 | 106.85 ▲1.17 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 5.00 ▼0.05 | 142.88 ▼9.81 | 142.63 ▲27.22 |
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
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, class 'Marketeer' not found
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
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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/marketeer/marketeer_core.php
- > /wp-content/plugins/marketeer/wp_marketeer.php
- > /wp-content/plugins/marketeer/includes/marketeer_core.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (38 tag instead of maximum 10)
marketeer/wp_marketeer.php 92% from 13 tests
The main file in "Marketeer" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("marketeer.php" instead of "wp_marketeer.php")
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
Success! There were no dangerous files found in this plugin226 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 24 | 226 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/logo_icon.png | 0.75KB | 0.91KB | 0.00% |
logo.png | 2.81KB | 2.27KB | ▼ 19.44% |
includes/logo.png | 2.81KB | 2.27KB | ▼ 19.44% |
logo_icon.png | 0.75KB | 0.91KB | 0.00% |