Benchmarks
Plugin footprint 22% 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
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/cp-simple-newsletter/cp-simple-newsletter.php+94
Undefined variable: newsletter_table_db_version
Server metrics [RAM: ▼2.12MB] [CPU: ▼334.90ms] Passed 4 tests
This is a short check of server-side resources used by CP Simple Newsletter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.29 | 20.96 ▼34.97 |
Dashboard /wp-admin | 2.28 ▼1.13 | 17.92 ▼16.57 |
Posts /wp-admin/edit.php | 2.28 ▼1.36 | 16.33 ▼22.11 |
Add New Post /wp-admin/post-new.php | 2.28 ▼4.69 | 18.13 ▼1,265.95 |
Media Library /wp-admin/upload.php | 2.28 ▼1.02 | 113.97 ▲81.02 |
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius | 2.28 | 17.37 |
Subscribed Persons /wp-admin/admin.php?page=persons | 2.28 | 19.29 |
Settings /wp-admin/admin.php?page=csn_init | 2.28 | 18.38 |
Server storage [IO: ▲1.89MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (0.60KB) outside of "wp-content/plugins/cp-simple-newsletter/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 227 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_cp_newsletter_table |
New WordPress options |
---|
fs_api_cache |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for CP Simple Newsletter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲81 | 15.59 ▼0.03 | 5.87 ▲0.11 | 2.31 ▼0.52 |
Dashboard /wp-admin | 2,964 ▲106 | 6.15 ▼0.03 | 116.53 ▼20.26 | 169.97 ▲8.30 |
Posts /wp-admin/edit.php | 2,760 ▲72 | 3.25 ▲0.01 | 64.64 ▲1.27 | 151.63 ▲9.64 |
Add New Post /wp-admin/post-new.php | 1,901 ▲190 | 17.13 ▼4.20 | 476.75 ▲2.82 | 158.56 ▼2.61 |
Media Library /wp-admin/upload.php | 1,770 ▲69 | 5.44 ▼0.12 | 140.32 ▼5.69 | 205.62 ▲12.50 |
Freemius Debug [v.1.2.1] /wp-admin/admin.php?page=freemius | 1,321 | 2.44 | 52.41 | 126.76 |
Subscribed Persons /wp-admin/admin.php?page=persons | 1,299 | 2.38 | 54.43 | 104.31 |
Settings /wp-admin/admin.php?page=csn_init | 1,220 | 2.43 | 55.00 | 136.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/cp-simple-newsletter/cp-simple-newsletter.php+94
Undefined variable: newsletter_table_db_version
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cp_newsletter_table
- The uninstall procedure has failed, leaving 4 options in the database
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- fs_api_cache
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=csn_init
- > Notice in wp-content/plugins/cp-simple-newsletter/cp-simple-newsletter.php+94
Undefined variable: newsletter_table_db_version
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function mysql_connect() in wp-content/plugins/cp-simple-newsletter/email-unsubscribe.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
1 plugin tags: newsletter
cp-simple-newsletter/cp-simple-newsletter.php Passed 13 tests
The main PHP file in "CP Simple Newsletter" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Simple Newsletter form with sortcode to show anywhere on website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected16,779 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 3,152 | 7,535 | 13,118 |
PO File | 2 | 650 | 659 | 1,608 |
Sass | 15 | 248 | 80 | 1,558 |
JavaScript | 4 | 37 | 63 | 229 |
Markdown | 1 | 59 | 0 | 191 |
JSON | 2 | 0 | 0 | 42 |
YAML | 2 | 2 | 0 | 22 |
CSS | 9 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 41.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 943.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 4 | 5.63% |
▷ Concrete classes | 67 | 94.37% |
▷ Final classes | 0 | 0.00% |
Methods | 1,250 | |
▷ Static methods | 172 | 13.76% |
▷ Public methods | 916 | 73.28% |
▷ Protected methods | 24 | 1.92% |
▷ Private methods | 310 | 24.80% |
Functions | 118 | |
▷ Named functions | 118 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 182 | |
▷ Global constants | 148 | 81.32% |
▷ Class constants | 34 | 18.68% |
▷ Public constants | 34 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/wordpress-sdk-master/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |