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
Install script ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼18.78ms] Passed 4 tests
Server-side resources used by MFS Campaigns
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.48 ▼4.07 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.28 ▲1.76 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.09 ▼2.92 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 33.86 ▼65.54 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.42 ▼2.60 |
Campaigns /wp-admin/edit.php?post_type=campaign | 3.33 | 38.93 |
Add New /wp-admin/post-new.php?post_type=campaign | 3.15 | 35.49 |
Settings /wp-admin/edit.php?post_type=campaign&page=campaign-settings | 3.26 | 33.41 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
campaign_enabled |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
MFS Campaigns: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲259 | 14.28 ▼0.15 | 6.88 ▲5.23 | 47.47 ▲7.29 |
Dashboard /wp-admin | 2,240 ▲52 | 5.16 ▼0.69 | 101.48 ▼4.01 | 86.03 ▲37.88 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.29 ▲0.29 | 36.33 ▼3.08 | 36.51 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 23.35 ▲0.06 | 749.93 ▲84.56 | 38.14 ▼18.69 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.43 ▲0.22 | 104.96 ▼6.82 | 72.83 ▲21.46 |
Campaigns /wp-admin/edit.php?post_type=campaign | 1,104 | 2.24 | 35.73 | 32.47 |
Add New /wp-admin/post-new.php?post_type=campaign | 2,531 | 8.34 | 185.87 | 122.36 |
Settings /wp-admin/edit.php?post_type=campaign&page=campaign-settings | 859 | 1.93 | 27.73 | 25.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- campaign_enabled
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=campaign
- > Notice in wp-content/plugins/mfs-campaigns/mfs-campaigns.php+171
Trying to get property 'ID' of non-object
SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mfs-campaigns/mfs-campaigns.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: campaign, wordpress campaign plugin, mfs campaign, wp campaign, wordpress campaign
mfs-campaigns/mfs-campaigns.php Passed 13 tests
Analyzing the main PHP file in "MFS Campaigns" version 1.0
114 characters long description:
MFS campaigns plugin lets you create multiple campaigns on your website and display them randomly on your website.
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
No dangerous file extensions were detected437 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 25 | 0 | 199 |
PHP | 2 | 48 | 19 | 190 |
JavaScript | 2 | 27 | 26 | 48 |
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.33 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/campaign.png | 0.88KB | 0.76KB | ▼ 13.56% |