Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/pmap/config.php+4
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.90ms] Passed 4 tests
This is a short check of server-side resources used by pMap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.37 ▼32.57 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.92 ▼44.98 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 5.59 ▼43.09 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.41 ▼86.94 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.31 ▼25.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wp_PMAPp_version |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for pMap
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 15.21 ▲1.01 | 13.46 ▲11.84 | 43.35 ▲0.16 |
Dashboard /wp-admin | 2,207 ▲19 | 5.85 ▲0.96 | 107.79 ▼2.38 | 42.82 ▼1.78 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.60 ▲0.62 | 41.18 ▲3.59 | 31.99 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.31 ▲4.97 | 697.68 ▲50.04 | 41.18 ▼19.52 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 5.14 ▲0.89 | 104.22 ▼2.11 | 46.18 ▼0.79 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/pmap/config.php+4
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- wp_PMAPp_version
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
Even though no errors were found, this is by no means 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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmap/config.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/pmap/config.php:17
- > PHP Warning
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmap/config.php on line 7
- > PHP Warning
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP) in wp-content/plugins/pmap/config.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: google maps
pmap/pmap.php 92% from 13 tests
The main file in "pMap" v. 0.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin480 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 104 | 5 | 256 |
PHP | 5 | 164 | 152 | 205 |
LESS | 1 | 2 | 0 | 8 |
C/C++ Header | 1 | 3 | 0 | 6 |
CSS | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 9 | 100.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin