Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/pandora-fms-wp/includes/pagination.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
Server metrics [RAM: ▼1.58MB] [CPU: ▼56.20ms] Passed 4 tests
An overview of server-side resources used by Pandora FMS WP - Monitoring Wordpress from Pandora FMS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.41 ▼1.06 | 7.16 ▼35.49 |
Dashboard /wp-admin | 2.43 ▼0.88 | 8.79 ▼53.82 |
Posts /wp-admin/edit.php | 2.43 ▼0.93 | 8.66 ▼42.00 |
Add New Post /wp-admin/post-new.php | 2.43 ▼3.46 | 9.07 ▼93.50 |
Media Library /wp-admin/upload.php | 2.43 ▼0.80 | 7.39 ▼29.27 |
Audit records /wp-admin/admin.php?page=pfms_wp_admin_menu_access_control | 2.43 | 9.64 |
Dashboard /wp-admin/admin.php?page=pfms_wp_admin_menu | 2.43 | 7.85 |
General Setup /wp-admin/admin.php?page=pfms_wp_admin_menu_general_setup | 2.43 | 8.78 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_pfms-wp::access_control |
wp_pfms-wp::user_stats |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
pfms-wp::installed |
pfmswp-options-access_control |
pfmswp-options |
pfms-wp::installed_plugins |
theysaidso_admin_options |
widget_recent-comments |
pfms-wp::installed_themes |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Pandora FMS WP - Monitoring Wordpress from Pandora FMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲77 | 14.42 ▼0.11 | 2.02 ▲0.02 | 39.16 ▼4.23 |
Dashboard /wp-admin | 2,240 ▲60 | 4.90 ▼0.77 | 97.87 ▲7.52 | 89.07 ▲53.05 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.31 ▲0.37 | 40.40 ▼2.47 | 37.10 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,718 ▲190 | 22.49 ▼0.69 | 655.84 ▼17.86 | 38.48 ▼12.85 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.50 ▲0.32 | 107.85 ▲3.78 | 76.95 ▲28.87 |
Audit records /wp-admin/admin.php?page=pfms_wp_admin_menu_access_control | 956 | 2.19 | 34.50 | 29.36 |
Dashboard /wp-admin/admin.php?page=pfms_wp_admin_menu | 1,075 | 1.99 | 26.82 | 30.35 |
General Setup /wp-admin/admin.php?page=pfms_wp_admin_menu_general_setup | 1,130 | 1.89 | 26.62 | 36.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/pandora-fms-wp/includes/pagination.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pfms_wp_admin_menu_general_setup
- > Deprecated in wp-content/plugins/pandora-fms-wp/includes/pagination.class.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; pagination has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pfms_wp_admin_menu
- > Notice in wp-content/plugins/pandora-fms-wp/includes/PandoraFMS_WP.class.php+830
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pandora-fms-wp/includes/PandoraFMS_WP.class.php:19
- > PHP Notice
Undefined variable: plugin_dir_path in wp-content/plugins/pandora-fms-wp/includes/PFMS_AdminPages.class.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pandora-fms-wp/includes/PFMS_ApiRest.class.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: security, monitoring, secure, audit
pandora-fms-wp/pandorafms-wp.php 77% from 13 tests
This is the main PHP file of "Pandora FMS WP - Monitoring Wordpress from Pandora FMS" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("pandora-fms-wp.php" instead of "pandorafms-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,066 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 675 | 210 | 2,322 |
JavaScript | 2 | 114 | 28 | 340 |
INI | 1 | 24 | 0 | 330 |
Markdown | 1 | 13 | 0 | 48 |
Perl | 1 | 6 | 7 | 15 |
CSS | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 35.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 47 | 51.09% |
▷ Public methods | 82 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 10.87% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.72KB | 0.37KB | ▼ 48.51% |