Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.21MB] [CPU: ▼311.95ms] Passed 4 tests
An overview of server-side resources used by WP POST Updated
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 55.85 ▲5.88 |
Dashboard /wp-admin | 3.54 ▲0.13 | 34.21 ▼1.52 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 39.80 ▼2.73 |
Add New Post /wp-admin/post-new.php | 5.76 ▼1.21 | 56.95 ▼1,249.12 |
Media Library /wp-admin/upload.php | 3.41 ▲0.12 | 32.78 ▲5.57 |
Abonnés /wp-admin/admin.php?page=subscriber | 3.38 | 26.03 |
Newsletter /wp-admin/admin.php?page=thfo_newsletter | 3.44 | 34.00 |
Options /wp-admin/admin.php?page=options | 3.38 | 26.17 |
WP Post Updated /wp-admin/admin.php?page=wp-post-updated | 3.38 | 24.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_thfo_newsletter_email |
New WordPress options |
---|
widget_thfo_newsletter |
wp_post_updated_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP POST Updated
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲53 | 15.30 ▼0.32 | 6.15 ▲0.17 | 2.00 ▼0.59 |
Dashboard /wp-admin | 2,938 ▲84 | 6.12 ▼0.06 | 117.06 ▼18.66 | 177.26 ▲3.05 |
Posts /wp-admin/edit.php | 2,732 ▲41 | 3.13 ▼0.12 | 63.80 ▲0.03 | 197.54 ▲52.81 |
Add New Post /wp-admin/post-new.php | 1,780 ▲148 | 22.40 ▲1.81 | 473.95 ▲53.83 | 182.17 ▼6.71 |
Media Library /wp-admin/upload.php | 1,743 ▲48 | 5.53 ▲0.00 | 128.45 ▼16.06 | 207.17 ▲21.47 |
Abonnés /wp-admin/admin.php?page=subscriber | 1,003 | 2.39 | 55.34 | 168.64 |
Newsletter /wp-admin/admin.php?page=thfo_newsletter | 1,945 | 8.48 | 152.52 | 262.86 |
Options /wp-admin/admin.php?page=options | 1,124 | 2.38 | 94.92 | 155.05 |
WP Post Updated /wp-admin/admin.php?page=wp-post-updated | 1,019 | 2.38 | 52.67 | 200.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 2 options
- widget_thfo_newsletter
- wp_post_updated_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-post-updated/wp-post-updated.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-post-updated/class/newsletterwidget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-post-updated/class/newsletter.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: notifier, update, subscription, post, status...
wp-post-updated/wp-post-updated.php 92% from 13 tests
The main PHP file in "WP POST Updated" ver. 1.3.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin459 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 150 | 78 | 441 |
CSS | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 7 | 17.07% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 0.71KB | 0.76KB | 0.00% |