Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.36MB] [CPU: ▼35.58ms] Passed 4 tests
This is a short check of server-side resources used by story|ftw
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 19.78 ▼23.11 |
Dashboard /wp-admin | 3.65 ▲0.35 | 23.09 ▼26.22 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 24.44 ▼22.02 |
Add New Post /wp-admin/post-new.php | 3.65 ▼2.23 | 23.11 ▼70.96 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 27.33 ▼9.48 |
Add New Story /wp-admin/post-new.php?post_type=storyftw_stories | 3.66 | 22.67 |
All Stories /wp-admin/edit.php?post_type=storyftw_stories | 3.66 | 25.54 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for story|ftw
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 14.47 ▲0.20 | 1.88 ▼0.01 | 40.90 ▼6.13 |
Dashboard /wp-admin | 2,233 ▲48 | 4.87 ▲0.02 | 100.82 ▼14.96 | 37.45 ▼11.11 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.07 | 36.14 ▲1.75 | 36.36 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,577 ▲63 | 23.64 ▲2.02 | 671.19 ▼25.78 | 36.37 ▼10.89 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.23 ▲0.01 | 95.90 ▼11.71 | 42.82 ▼1.80 |
Add New Story /wp-admin/post-new.php?post_type=storyftw_stories | 2,958 | 4.62 | 143.07 | 50.17 |
All Stories /wp-admin/edit.php?post_type=storyftw_stories | 1,103 | 1.98 | 31.30 | 25.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/storyftw/includes/libraries/cmb/CMB2.php+565
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 21 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=storyftw_stories
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/storyftw/includes/libraries/cmb/CMB2.php+565
count(): Parameter must be an array or an object that implements Countable
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
Please fix the following
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/storyftw/includes/templates/story-tablenav.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/storyftw/includes/templates/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/storyftw/includes/templates/story-table-head-foot.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/storyftw/includes/libraries/cmb/CMB2.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storyftw/includes/libraries/cmb/init.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/storyftw/storyftw.php:163
- > PHP Notice
Undefined variable: top in wp-content/plugins/storyftw/includes/templates/story-table-head-foot.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/storyftw/includes/libraries/cmb2-post-search-field/cmb2_post_search_field.php:15
- > PHP Fatal error
Uncaught Error: Class 'StoryFTW' not found in wp-content/plugins/storyftw/includes/templates/story-listing.php:1
- > PHP Fatal error
Uncaught Error: Class 'StoryFTW_CPT' not found in wp-content/plugins/storyftw/includes/stories.php:3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Replace any WordPress page with a story.), #2 (Create a story & story global settings.), #3 (Story global settings continued.), #4 (Story page re-ordering.), #5 (Embed a background image/gif or video.)
storyftw/storyftw.php Passed 13 tests
Analyzing the main PHP file in "story|ftw" version 0.1.4
123 characters long description:
A full screen, mobile first, storytelling plugin for WordPress. Eliminate distractions and focus your reader on your story.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin14,066 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,561 | 2,094 | 5,612 |
CSS | 12 | 969 | 481 | 4,547 |
JavaScript | 20 | 999 | 804 | 3,463 |
PO File | 2 | 183 | 357 | 414 |
SVG | 2 | 0 | 2 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 32.30 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 377 | |
▷ Static methods | 17 | 4.51% |
▷ Public methods | 371 | 98.41% |
▷ Protected methods | 2 | 0.53% |
▷ Private methods | 4 | 1.06% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 2.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libraries/cmb/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/libraries/cmb/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
includes/libraries/cmb/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libraries/cmb/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libraries/cmb/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |