Benchmarks
Plugin footprint 82% 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.13MB] [CPU: ▼4.61ms] 75% from 4 tests
Analyzing server-side resources used by Moosend Landing Pages
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 508.27ms on /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landing-importer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.46 ▲1.01 |
Dashboard /wp-admin | 3.43 ▲0.12 | 50.37 ▲1.05 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.63 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.17 | 85.29 ▼20.02 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.68 ▼0.48 |
Import to WordPress /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landing-importer | 3.36 | 508.27 |
Connect /wp-admin/edit.php?post_type=moosend_landing&page=moosend-authentication | 3.33 | 34.45 |
Settings /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landings-settings | 3.32 | 32.99 |
Landing Pages /wp-admin/edit.php?post_type=moosend_landing | 3.41 | 258.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Moosend Landing Pages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.14 ▼0.38 | 1.82 ▲0.04 | 44.00 ▼0.80 |
Dashboard /wp-admin | 2,255 ▲78 | 5.52 ▼0.14 | 82.65 ▼18.26 | 67.01 ▲22.70 |
Posts /wp-admin/edit.php | 2,158 ▲55 | 1.99 ▼0.02 | 35.14 ▼0.35 | 37.44 ▲7.98 |
Add New Post /wp-admin/post-new.php | 1,505 ▼45 | 16.52 ▼1.92 | 601.35 ▼45.55 | 50.56 ▼14.65 |
Media Library /wp-admin/upload.php | 1,457 ▲60 | 4.23 ▲0.02 | 98.13 ▼6.74 | 71.59 ▲29.72 |
Import to WordPress /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landing-importer | 1,028 | 2.16 | 27.20 | 34.83 |
Connect /wp-admin/edit.php?post_type=moosend_landing&page=moosend-authentication | 1,041 | 1.99 | 22.48 | 42.78 |
Settings /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landings-settings | 851 | 2.05 | 27.15 | 32.62 |
Landing Pages /wp-admin/edit.php?post_type=moosend_landing | 1,131 | 1.96 | 32.35 | 31.01 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=moosend_landing&page=moosend-landing-importer
- > Notice in wp-content/plugins/moosend-landing-pages/views/importer-page.php+116
Trying to access array offset on value of type null
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/moosend-landing-pages/views/auth-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/moosend-landing-pages/views/importer-page.php:5
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
moosend-landing-pages/index.php 85% from 13 tests
Analyzing the main PHP file in "Moosend Landing Pages" version 1.1.6
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("moosend-landing-pages.php" instead of "index.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
There were no executable files found in this plugin883 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 44 | 77 | 722 |
SVG | 1 | 0 | 1 | 161 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and 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/img/no-landings.png | 6.57KB | 3.88KB | ▼ 40.94% |
assets/img/moo-favicon.png | 2.50KB | 1.03KB | ▼ 58.74% |