Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▲54.55ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress StoryMap Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 97.35 ▲55.92 |
Dashboard /wp-admin | 3.35 ▲0.05 | 102.98 ▲55.60 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 111.11 ▲66.86 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 136.15 ▲39.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 108.35 ▲74.41 |
Add New Point /wp-admin/admin.php?page=storymap-pro-edit-points | 3.30 | 91.49 |
List of Stories /wp-admin/admin.php?page=storymap-pro-mystories-list | 3.26 | 89.59 |
StoryMap /wp-admin/admin.php?page=storymap-pro-config | 3.25 | 88.37 |
Add New Story /wp-admin/admin.php?page=storymap-pro-edit-stories | 3.29 | 88.93 |
List of Points /wp-admin/admin.php?page=storymap-pro-points-list | 3.26 | 87.63 |
Server storage [IO: ▲5.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 102 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_storymap_pro_points |
wp_storymap_pro_my_stories |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
storymap_pro_example_db_version |
storymap_pro_options |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
storymap_pro_stories_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Wordpress StoryMap Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,295 ▲560 | 17.10 ▲2.81 | 21.30 ▲19.42 | 46.10 ▼4.62 |
Dashboard /wp-admin | 2,384 ▲196 | 6.50 ▲1.62 | 137.93 ▲22.77 | 46.66 ▲0.13 |
Posts /wp-admin/edit.php | 2,290 ▲201 | 3.35 ▲1.31 | 54.48 ▲17.71 | 35.07 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,700 ▲165 | 20.10 ▼3.38 | 624.50 ▼55.95 | 30.45 ▼33.86 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.14 ▲0.02 | 81.10 ▼26.34 | 44.32 ▲0.26 |
Add New Point /wp-admin/admin.php?page=storymap-pro-edit-points | 4,650 | 9.30 | 216.49 | 95.00 |
List of Stories /wp-admin/admin.php?page=storymap-pro-mystories-list | 1,169 | 3.19 | 38.27 | 26.95 |
StoryMap /wp-admin/admin.php?page=storymap-pro-config | 1,012 | 3.15 | 36.95 | 25.68 |
Add New Story /wp-admin/admin.php?page=storymap-pro-edit-stories | 1,604 | 6.30 | 109.78 | 42.73 |
List of Points /wp-admin/admin.php?page=storymap-pro-points-list | 1,189 | 3.13 | 37.43 | 27.37 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- storymap_pro_stories_db_version
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- storymap_pro_example_db_version
- storymap_pro_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-storymap/my-stories.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-storymap/wp-storymap-pro.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-storymap/points-table.php:84
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #5 (Page with all your points and related info.), #6 (How to insert a story in a page or post.), #7 (Storymap public view.)
wp-storymap/wp-storymap-pro.php 92% from 13 tests
The entry point to "Wordpress StoryMap Plugin" version 2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-storymap.php" instead of "wp-storymap-pro.php")
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
There were no executable files found in this plugin34,160 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 5,510 | 6,880 | 22,605 |
CSS | 13 | 120 | 98 | 3,624 |
SVG | 2 | 1 | 1 | 2,893 |
LESS | 17 | 73 | 112 | 2,066 |
Sass | 14 | 34 | 34 | 1,768 |
PHP | 4 | 293 | 416 | 1,135 |
Markdown | 1 | 10 | 0 | 40 |
HTML | 1 | 6 | 4 | 28 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.37MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
leaflet-storymap-master/markers/images/circle.png | 1.00KB | 0.76KB | ▼ 23.90% |
leaflet/images/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
leaflet-storymap-master/markers/images/markers_shadow@2x.png | 1.43KB | 1.56KB | 0.00% |