Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.32ms] Passed 4 tests
Server-side resources used by WP Campaign Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.68 ▼4.80 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.49 ▼7.75 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.98 ▼3.90 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.58 ▼8.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.69 ▲1.70 |
All Campaigns /wp-admin/edit.php?post_type=wcm-campaign | 3.34 | 37.23 |
Add New /wp-admin/post-new.php?post_type=wcm-campaign | 3.42 | 52.23 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Campaign Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.23 ▼0.95 | 1.66 ▼0.13 | 41.94 ▼1.72 |
Dashboard /wp-admin | 2,236 ▲48 | 4.88 ▲0.02 | 109.23 ▼9.82 | 41.99 ▼3.03 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.03 | 34.07 ▼3.23 | 36.29 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,561 ▲47 | 23.12 ▲5.45 | 672.75 ▼22.04 | 53.47 ▼1.43 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.18 ▼0.04 | 97.68 ▼9.54 | 42.40 ▼5.97 |
All Campaigns /wp-admin/edit.php?post_type=wcm-campaign | 1,104 | 1.93 | 31.50 | 30.29 |
Add New /wp-admin/post-new.php?post_type=wcm-campaign | 2,440 | 7.74 | 178.00 | 68.97 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/wp-campaign-manager/templates/meta-box.php on line 10
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/wp-campaign-manager/templates/meta-box.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/wp-campaign-manager/templates/meta-box.php:13
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/wp-campaign-manager/templates/meta-box.php on line 12
- > PHP Notice
Undefined variable: field_name in wp-content/plugins/wp-campaign-manager/templates/meta-box.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-campaign-manager/wp-campaign-manager.php:43
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: shortcode, campaign, post, marketing
wp-campaign-manager/wp-campaign-manager.php Passed 13 tests
The main file in "WP Campaign Manager" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Manage your campaign banners easier.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin247 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 55 | 108 | 202 |
PO File | 1 | 16 | 18 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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
PNG images were not found in this plugin