Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼159.19ms] Passed 4 tests
Analyzing server-side resources used by Placemarks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.11 ▲0.39 | 43.72 ▲22.07 |
Dashboard /wp-admin | 3.41 ▲0.36 | 44.78 ▼3.07 |
Posts /wp-admin/edit.php | 3.46 ▲0.35 | 48.72 ▲3.88 |
Add New Post /wp-admin/post-new.php | 3.99 ▼1.45 | 30.64 ▼637.39 |
Media Library /wp-admin/upload.php | 3.29 ▲0.29 | 35.98 ▼0.17 |
Placemarks /wp-admin/options-general.php?page=placemarks | 3.26 | 31.29 |
Server storage [IO: ▲2.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Placemarks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲151 | 15.93 ▲0.25 | 8.78 ▼0.65 | 43.67 ▼0.94 |
Dashboard /wp-admin | 3,007 ▲78 | 5.91 ▲0.00 | 138.54 ▼12.54 | 112.97 ▲0.21 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.70 ▼0.01 | 65.85 ▼5.28 | 85.43 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,702 ▲30 | 18.81 ▼0.14 | 400.57 ▼11.43 | 109.10 ▲2.33 |
Media Library /wp-admin/upload.php | 1,847 ▲37 | 5.02 ▲0.01 | 153.85 ▼0.58 | 114.96 ▲9.02 |
Placemarks /wp-admin/options-general.php?page=placemarks | 1,101 | 2.08 | 56.89 | 79.36 |
Placemarks /wp-admin/settings.php?page=placemarks | 26 | 0.90 | 0.05 | 10.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/placemarks/public/partials/placemarks-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/placemarks/includes/class-placemarks-api.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/settings.php?page=placemarks
- > Network (severe)
wp-admin/settings.php?page=placemarks - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== placemarks ===
) - Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in placemarks/assets to your readme.txt
placemarks/placemarks.php Passed 13 tests
The main PHP script in "Placemarks" version 3.0.1 is automatically included on every request by WordPress
71 characters long description:
Easily manage placemarks and embed custom maps (now with OpenStreetMap)
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
Success! There were no dangerous files found in this plugin18,389 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 5,313 | 7,087 | 16,495 |
PHP | 15 | 277 | 810 | 995 |
CSS | 3 | 77 | 42 | 893 |
XML | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 44 | 75.86% |
▷ Protected methods | 1 | 1.72% |
▷ Private methods | 13 | 22.41% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
vendor/leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
vendor/leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
vendor/leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
public/images/default.png | 1.11KB | 1.11KB | 0.00% |