Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.66ms] Passed 4 tests
Analyzing server-side resources used by Future Monitor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.06 ▲0.12 |
Dashboard /wp-admin | 3.40 ▲0.05 | 55.76 ▼12.07 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.72 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 91.90 ▼13.80 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 42.14 ▲5.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Future Monitor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲68 | 14.37 ▲0.02 | 2.13 ▲0.10 | 43.57 ▼0.67 |
Dashboard /wp-admin | 2,232 ▲55 | 5.56 ▼0.12 | 90.65 ▼3.00 | 43.07 ▲6.11 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.04 ▲0.01 | 33.97 ▼6.95 | 34.20 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.75 ▼5.44 | 687.61 ▲68.50 | 59.16 ▼0.26 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.11 | 96.97 ▼4.11 | 41.27 ▼3.33 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\FutureMonitor\\load_plugin_textdomain() in wp-content/plugins/future-monitor/Plugin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: dashboard, schedule visualization, planned posts, widget
future-monitor/Plugin.php 92% from 13 tests
This is the main PHP file of "Future Monitor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("future-monitor.php" instead of "Plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin562 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 127 | 204 | 497 |
PO File | 1 | 8 | 9 | 48 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 37 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.63% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin