Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.46ms] Passed 4 tests
Server-side resources used by MapBBCode for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.61 ▼2.24 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.37 ▼17.33 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.24 ▼6.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.60 ▼19.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.10 ▼0.34 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for MapBBCode for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲131 | 14.60 ▼0.03 | 11.72 ▲9.56 | 40.14 ▼13.49 |
Dashboard /wp-admin | 2,209 ▲18 | 4.88 ▲0.00 | 109.90 ▼8.16 | 41.31 ▼1.30 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.02 | 34.54 ▼6.10 | 35.86 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.03 ▼0.11 | 672.67 ▼16.26 | 58.14 ▲7.27 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.07 | 96.62 ▼24.70 | 41.31 ▼10.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mapbb/mapbb.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: mapbbcode, shortcode, map, leaflet, osm...
mapbb/mapbb.php Passed 13 tests
"MapBBCode for WordPress" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Allows use [map] codes for Leaflet maps embedding info pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,070 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 271 | 118 | 2,299 |
CSS | 4 | 103 | 34 | 674 |
PHP | 1 | 15 | 16 | 41 |
Markdown | 1 | 16 | 0 | 37 |
HTML | 1 | 0 | 18 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/lib/images/spritesheet.png | 0.80KB | 0.49KB | ▼ 38.34% |
dist/lib/images/spritesheet-2x.png | 1.43KB | 0.83KB | ▼ 41.85% |
dist/lib/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
dist/lib/images/layers.png | 1.47KB | 1.05KB | ▼ 28.36% |
dist/lib/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |