Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.54MB] [CPU: ▼16.64ms] Passed 4 tests
Analyzing server-side resources used by Tiedotuspostigeneraattori
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.13 | 46.38 ▼1.56 |
Dashboard /wp-admin | 3.77 ▲0.14 | 52.16 ▼15.37 |
Posts /wp-admin/edit.php | 3.82 ▲0.14 | 52.39 ▼1.42 |
Add New Post /wp-admin/post-new.php | 3.56 ▼2.59 | 41.61 ▼48.20 |
Media Library /wp-admin/upload.php | 3.63 ▲0.14 | 43.10 ▲2.05 |
Newsletter messages /wp-admin/edit.php?post_type=tiedotettavat | 3.67 | 41.40 |
Newsletter settings /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotuksen-asetukset | 3.58 | 36.59 |
Subjects /wp-admin/edit-tags.php?taxonomy=tiedotusaihe&post_type=tiedotettavat | 3.63 | 38.75 |
Generator /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotusgeneraattori | 3.59 | 39.19 |
Add New /wp-admin/post-new.php?post_type=tiedotettavat | 3.55 | 34.75 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Tiedotuspostigeneraattori: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.48 ▲0.55 | 1.93 ▲0.19 | 44.79 ▲5.43 |
Dashboard /wp-admin | 2,231 ▲50 | 5.60 ▼0.11 | 85.51 ▼18.01 | 38.70 ▼1.67 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.01 ▼0.01 | 39.96 ▲3.66 | 36.49 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 18.21 ▲0.60 | 625.92 ▼61.66 | 49.70 ▼3.46 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.19 ▼0.03 | 98.86 ▼5.12 | 41.91 ▼4.28 |
Newsletter messages /wp-admin/edit.php?post_type=tiedotettavat | 1,100 | 1.98 | 32.54 | 32.54 |
Newsletter settings /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotuksen-asetukset | 911 | 2.02 | 21.94 | 32.82 |
Subjects /wp-admin/edit-tags.php?taxonomy=tiedotusaihe&post_type=tiedotettavat | 1,316 | 2.14 | 26.95 | 29.59 |
Generator /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotusgeneraattori | 787 | 2.05 | 25.78 | 22.90 |
Add New /wp-admin/post-new.php?post_type=tiedotettavat | 2,335 | 7.64 | 173.59 | 61.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotusgeneraattori
- > Notice in wp-content/plugins/simple-newsletter-generator/tiedotuspostigeneraattori.php+172
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=tiedotettavat&page=tiedotusgeneraattori
- > Warning in wp-content/plugins/simple-newsletter-generator/tiedotuspostigeneraattori.php+174
Invalid argument supplied for foreach()
- > GET request to /wp-admin/post-new.php?post_type=tiedotettavat
- > Notice in wp-content/plugins/simple-newsletter-generator/tiedotuspostigeneraattori.php+110
Undefined index: tiedotettavameta_noncename
- > GET request to /wp-admin/post-new.php?post_type=tiedotettavat
- > Warning in wp-content/plugins/simple-newsletter-generator/tiedotuspostigeneraattori.php+82
Use of undefined constant Ymd - assumed 'Ymd' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-newsletter-generator/asetukset.php:313
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-newsletter-generator/tiedotuspostigeneraattori.php:10
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: email, tiedottaminen, mailing list, mail generator
simple-newsletter-generator/tiedotuspostigeneraattori.php 92% from 13 tests
"Tiedotuspostigeneraattori" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-newsletter-generator.php" instead of "tiedotuspostigeneraattori.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin610 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 161 | 95 | 510 |
PO File | 1 | 38 | 44 | 100 |
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.41 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin