Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.56ms] Passed 4 tests
An overview of server-side resources used by WP Story
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 46.38 ▲3.25 |
Dashboard /wp-admin | 3.47 ▲0.16 | 50.62 ▼4.01 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.07 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 95.84 ▼6.95 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.47 ▲3.18 |
Add New /wp-admin/post-new.php?post_type=wp-story | 3.41 | 47.94 |
All Stories /wp-admin/edit.php?post_type=wp-story | 3.43 | 41.03 |
Options /wp-admin/edit.php?post_type=wp-story&page=wp-story-options | 3.37 | 34.91 |
Displayed Stories /wp-admin/edit.php?post_type=wp-story&page=wp-story | 3.36 | 34.62 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Story
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲179 | 13.92 ▼0.50 | 9.71 ▲7.64 | 38.14 ▼5.72 |
Dashboard /wp-admin | 2,237 ▲49 | 5.82 ▼0.08 | 101.49 ▼13.92 | 63.50 ▲21.95 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.01 ▲0.02 | 39.16 ▼2.33 | 33.92 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.10 ▲4.64 | 754.32 ▲83.34 | 58.45 ▼2.54 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.24 ▲0.03 | 100.20 ▲0.33 | 78.76 ▲36.26 |
Add New /wp-admin/post-new.php?post_type=wp-story | 1,805 | 3.86 | 74.06 | 109.53 |
All Stories /wp-admin/edit.php?post_type=wp-story | 1,099 | 2.20 | 33.78 | 29.98 |
Options /wp-admin/edit.php?post_type=wp-story&page=wp-story-options | 900 | 1.75 | 25.43 | 36.69 |
Displayed Stories /wp-admin/edit.php?post_type=wp-story&page=wp-story | 910 | 1.90 | 32.68 | 27.41 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wp-story
- > Notice in wp-content/plugins/wp-story/admin/class-wp-story-meta-box.php+120
Trying to access array offset on value of type int
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-story/admin/class-wp-story-meta-box.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-story/admin/partials/wp-story-admin-options-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wp-story/admin/partials/wp-story-admin-fields-display.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: instagram, wordpress hikaye, stories, wordpress story, story...
wp-story/wp-story.php Passed 13 tests
"WP Story" version 2.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Create your own simple stories.
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
Everything looks great! No dangerous files found in this plugin1,250 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 197 | 607 | 661 |
CSS | 3 | 58 | 1 | 371 |
PO File | 1 | 63 | 65 | 145 |
JavaScript | 4 | 12 | 3 | 73 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/menu.png | 0.29KB | 0.20KB | ▼ 31.19% |
admin/img/rate.png | 36.83KB | 15.38KB | ▼ 58.23% |