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.00MB] [CPU: ▼10.41ms] Passed 4 tests
This is a short check of server-side resources used by Campaign Monitor Add-On for FormCraft
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.39 ▼3.32 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.42 ▼19.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.98 ▼1.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.57 ▼17.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.31 ▲3.38 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Campaign Monitor Add-On for FormCraft: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.05 | 1.79 ▲0.18 | 44.41 ▲0.56 |
Dashboard /wp-admin | 2,206 ▲18 | 6.03 ▲0.13 | 107.64 ▲0.10 | 42.15 ▼0.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 40.00 ▼2.52 | 34.30 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,533 ▲3 | 23.05 ▲4.77 | 679.08 ▲77.07 | 53.64 ▼5.60 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▼0.01 | 102.93 ▼5.83 | 43.92 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campaign-monitor-for-formcraft/formcraft-cm-main.php:19
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/campaign-monitor-for-formcraft/formcraft-cm-main.php on line 14
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/campaign-monitor-for-formcraft/formcraft-cm-main.php on line 16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/campaign-monitor-for-formcraft/formcraft-cm-main.php on line 17
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/campaign-monitor-for-formcraft/formcraft-cm-main.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
campaign-monitor-for-formcraft/formcraft-cm-main.php 85% from 13 tests
The principal PHP file in "Campaign Monitor Add-On for FormCraft" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("campaign-monitor-for-formcraft.php" instead of "formcraft-cm-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,590 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 532 | 2,924 | 2,072 |
Markdown | 4 | 152 | 0 | 362 |
JavaScript | 1 | 0 | 0 | 81 |
JSON | 1 | 0 | 0 | 40 |
CSS | 1 | 2 | 0 | 18 |
YAML | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 2 | 0.99% |
▷ Public methods | 197 | 97.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 2.48% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 35 | |
▷ Global constants | 35 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 2.02KB | 1.10KB | ▼ 45.34% |
bookmark.png | 2.32KB | 1.28KB | ▼ 44.83% |