Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/nokia-mapsplaces/widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; NokiaMapsPlacesWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼48.80ms] Passed 4 tests
A check of server-side resources used by Nokia Maps & Places
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.00 ▼32.46 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.29 ▼38.61 |
Posts /wp-admin/edit.php | 2.11 ▼1.26 | 4.93 ▼39.20 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.79 | 5.61 ▼84.91 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 5.42 ▼31.70 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_nokiamapsplaceswidget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nokia Maps & Places
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 13.51 ▼1.15 | 9.98 ▲8.25 | 43.01 ▲6.61 |
Dashboard /wp-admin | 2,209 ▲31 | 5.51 ▼0.21 | 83.55 ▼18.66 | 39.09 ▼1.83 |
Posts /wp-admin/edit.php | 2,118 ▲21 | 2.02 ▲0.02 | 35.49 ▲0.65 | 35.95 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.87 ▼0.42 | 679.32 ▼19.05 | 61.72 ▲4.76 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.14 ▲0.02 | 95.79 ▼4.43 | 42.84 ▼0.64 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/nokia-mapsplaces/widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; NokiaMapsPlacesWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_nokiamapsplaceswidget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nokia-mapsplaces/widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function nokiaplaces_url() in wp-content/plugins/nokia-mapsplaces/tinymce/tinymce.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nokia-mapsplaces/widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Nokia Maps & Places button in Upload/Insert section of Add New Post), #2 (Place search with suggestion list), #3 (Search results), #4 (Customize your map), #5 (Nokia Maps & Places widget in a post), #6 (Shortcode example), #7 (Select any place with right-click and use it in your widget), #8 (Use any place and customize place name), #9 (Include Nokia Maps Traffic into your place widgets), #10 (Show public transport information in a widget)
nokia-mapsplaces/nokia-mapsplaces.php Passed 13 tests
The main PHP file in "Nokia Maps & Places" ver. 1.7.0 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
With this plugin you are able to add a places and addresses into a post or a page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,178 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 184 | 92 | 1,142 |
CSS | 5 | 114 | 75 | 985 |
SVG | 1 | 0 | 0 | 638 |
PHP | 5 | 93 | 99 | 391 |
HTML | 1 | 0 | 1 | 22 |
PHP code Passed 2 tests
A brief analysis 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.22 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 1.38MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
page/images/nokiaLogo.png | 0.53KB | 0.56KB | 0.00% |
screenshot-2.png | 334.77KB | 127.37KB | ▼ 61.95% |
screenshot-10.png | 113.29KB | 66.53KB | ▼ 41.27% |
page/images/ie6/borderTopCenter.png | 0.15KB | 0.19KB | 0.00% |
screenshot-6.png | 29.52KB | 13.39KB | ▼ 54.65% |