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.31MB] [CPU: ▼5.33ms] Passed 4 tests
Server-side resources used by Google Maps CP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 41.88 ▼9.13 |
Dashboard /wp-admin | 3.61 ▲0.27 | 50.66 ▼13.36 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 56.81 ▲2.91 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 89.92 ▼1.73 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 42.71 ▲8.69 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
installed_codepeople-post-map |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Google Maps CP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 14.43 ▼0.36 | 2.05 ▼0.32 | 46.61 ▼3.40 |
Dashboard /wp-admin | 2,244 ▲64 | 5.66 ▲0.01 | 93.84 ▲2.75 | 39.20 ▲0.08 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.01 ▲0.05 | 40.93 ▲2.97 | 35.58 ▼2.55 |
Add New Post /wp-admin/post-new.php | 7,623 ▲6,095 | 19.66 ▼3.23 | 1,142.99 ▲448.27 | 71.27 ▲2.70 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.23 ▲0.03 | 114.30 ▼3.19 | 47.57 ▼1.08 |
Online Help /wp-admin/codepeople-post-map.php?page=google_maps_cp_help | 26 | 0.42 | 0.11 | 15.46 |
I've a Question /wp-admin/codepeople-post-map.php?page=google_maps_cp_question | 26 | 0.42 | 0.10 | 5.42 |
Upgrade /wp-admin/codepeople-post-map.php?page=google_maps_cp_upgrade | 26 | 0.42 | 0.06 | 8.73 |
Google Maps CP /wp-admin/codepeople-post-map.php | 26 | 0.42 | 0.14 | 4.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- installed_codepeople-post-map
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/codepeople-post-map/codepeople-post-map.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/codepeople-post-map.php?page=google_maps_cp_help
- > Network (severe)
wp-admin/codepeople-post-map.php?page=google_maps_cp_help - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/codepeople-post-map.php?page=google_maps_cp_question
- > Network (severe)
wp-admin/codepeople-post-map.php?page=google_maps_cp_question - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/codepeople-post-map.php?page=google_maps_cp_upgrade
- > Network (severe)
wp-admin/codepeople-post-map.php?page=google_maps_cp_upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/codepeople-post-map.php
- > Network (severe)
wp-admin/codepeople-post-map.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #12 in codepeople-post-map/assets to your readme.txt
- Tags: There are too many tags (33 tag instead of maximum 10)
codepeople-post-map/codepeople-post-map.php 92% from 13 tests
Analyzing the main PHP file in "Google Maps CP" version 1.1.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 549 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
Good job! No executable or dangerous file extensions detected3,434 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 206 | 133 | 1,494 |
PO File | 2 | 402 | 519 | 1,052 |
JavaScript | 3 | 85 | 46 | 650 |
HTML | 1 | 1 | 0 | 187 |
CSS | 3 | 7 | 12 | 51 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 135.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 260.00 |
Average method complexity | 9.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 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
52 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/animals.png | 1.31KB | 0.91KB | ▼ 30.25% |
images/icons/coffee.png | 1.10KB | 0.83KB | ▼ 25.29% |
images/icons/family.png | 1.20KB | 0.86KB | ▼ 28.59% |
images/icons/iceskating.png | 1.32KB | 0.91KB | ▼ 31.02% |
images/icons/webcam.png | 1.32KB | 0.91KB | ▼ 31.33% |