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.00MB] [CPU: ▼153.08ms] Passed 4 tests
Server-side resources used by mFloorMap
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 35.19 ▲2.91 |
Dashboard /wp-admin | 3.06 ▲0.00 | 39.12 ▼5.00 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 44.11 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 85.41 ▼605.51 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.27 ▼0.07 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for mFloorMap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,677 ▲81 | 15.87 ▼0.12 | 9.74 ▲1.60 | 49.83 ▼0.64 |
Dashboard /wp-admin | 2,992 ▲58 | 5.97 ▲0.06 | 132.98 ▼16.43 | 111.76 ▼7.89 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 64.95 ▼1.33 | 90.82 ▼3.84 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.79 ▲0.12 | 370.30 ▼5.38 | 103.63 ▼8.22 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 143.15 ▼22.69 | 114.10 ▼11.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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
Good news, no errors were detected
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mfloormap/mfloormap.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'mFloorMap_Admin_BaseManager' not found in wp-content/plugins/mfloormap/Admin/PlaceManager.php:8
- > PHP Fatal error
Uncaught Error: Class 'mFloorMap_Admin_BaseManager' not found in wp-content/plugins/mfloormap/Admin/FloorManager.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/mfloormap/Admin/BaseManager.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mfloormap/Public/Shortcode/Floor/template.php:5
- > PHP Notice
Undefined variable: BackLink in wp-content/plugins/mfloormap/Public/Shortcode/Place/template.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'mFloorMap_Admin_BaseManager' not found in wp-content/plugins/mfloormap/Admin/FacilityManager.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mfloormap/Public/Shortcode/Facility/template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mfloormap/Public/Shortcode/Place/template.php:7
- > PHP Fatal error
Uncaught Error: Class 'mFloorMap_Admin_BaseManager' not found in wp-content/plugins/mfloormap/Admin/TagManager.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
mfloormap/mfloormap.php 85% from 13 tests
"mFloorMap" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/Lang")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,309 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 750 | 1,254 | 3,123 |
PHP | 18 | 705 | 633 | 1,917 |
CSS | 2 | 19 | 10 | 150 |
PO File | 1 | 54 | 2 | 116 |
Bourne Shell | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.46 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 13 | 10.32% |
▷ Public methods | 58 | 46.03% |
▷ Protected methods | 66 | 52.38% |
▷ Private methods | 2 | 1.59% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mfloormap_logo.png | 55.69KB | 18.40KB | ▼ 66.95% |
Public/Image/empty-logo.png | 4.21KB | 1.75KB | ▼ 58.39% |
Public/CSS/sprites.png | 20.25KB | 10.19KB | ▼ 49.68% |