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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.25ms] Passed 4 tests
Server-side resources used by WP Flexible Map Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.19 ▼2.21 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.43 ▼11.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.74 ▲5.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 101.18 ▲1.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.42 ▲4.06 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
flexible-map-options-status |
db_upgraded |
widget_recent-posts |
flexible-map-options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Flexible Map Options
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.17 | 1.85 ▲0.07 | 44.17 ▲2.09 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼1.02 | 98.05 ▼6.49 | 39.99 ▼5.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 40.39 ▼0.63 | 34.82 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,542 ▲13 | 18.08 ▼4.99 | 616.15 ▲6.15 | 58.18 ▲8.09 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▼0.12 | 107.20 ▲0.35 | 46.63 ▲1.25 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- flexible-map-options
- widget_recent-posts
- widget_theysaidso_widget
- flexible-map-options-status
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function getAllFields() on null in wp-content/plugins/wp-flexible-map-options/page.optionpage.php:43
- > PHP Notice
Undefined variable: optionInstance in wp-content/plugins/wp-flexible-map-options/page.optionpage.php on line 43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-flexible-map-options/flexible-map-options.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Invalid url: ""
wp-flexible-map-options/flexible-map-options.php 85% from 13 tests
The main PHP file in "WP Flexible Map Options" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-flexible-map-options.php" instead of "flexible-map-options.php")
- 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
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
No dangerous file extensions were detected488 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 75 | 158 | 302 |
PO File | 2 | 68 | 68 | 186 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected