Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.23ms] Passed 4 tests
This is a short check of server-side resources used by WP Site Monitor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.73 ▼0.18 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.40 ▲2.88 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 43.47 ▼3.14 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 80.71 ▼13.65 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.63 ▲0.04 |
WP Site Monitor /wp-admin/options-general.php?page=wp_site_monitor | 3.30 | 35.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Site Monitor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.43 | 1.62 ▲0.01 | 41.96 ▼0.02 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.11 | 96.98 ▲8.80 | 41.64 ▲5.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 34.23 ▼2.64 | 33.84 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.32 ▼0.32 | 627.42 ▼56.47 | 57.74 ▲3.86 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.03 | 92.60 ▼18.46 | 40.08 ▼6.96 |
WP Site Monitor /wp-admin/options-general.php?page=wp_site_monitor | 841 | 1.99 | 25.14 | 28.83 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-site-monitor/templates/settings-page.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-site-monitor/templates/setting-input-wp-version.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-site-monitor/templates/setting-section-endpoints.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-site-monitor/templates/setting-input-enable.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-site-monitor/templates/setting-section-enable.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wp-site-monitor/src/class-api.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-site-monitor/templates/setting-input-plugins.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: remote administration, admin, rest, rest-api, api
wp-site-monitor/wp-site-monitor.php Passed 13 tests
The main PHP file in "WP Site Monitor" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Provides extra WP REST API endpoints to help manage sites remotely.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected641 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 146 | 455 | 584 |
Markdown | 1 | 10 | 0 | 56 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.33 |
▷ 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 | 43 | |
▷ Static methods | 5 | 11.63% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin