Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼4.14ms] Passed 4 tests
Analyzing server-side resources used by Storytelling
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.42 ▼4.01 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.19 ▲4.61 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.74 ▼0.01 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.40 | 75.53 ▼13.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.96 ▲0.65 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Storytelling: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.23 ▼1.36 | 1.88 ▼0.05 | 42.85 ▼0.59 |
Dashboard /wp-admin | 2,207 ▲19 | 5.89 ▲1.00 | 106.25 ▲0.87 | 38.95 ▼2.57 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 40.52 ▲4.01 | 37.46 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6,282 ▲4,749 | 25.90 ▲2.85 | 917.84 ▲239.57 | 61.33 ▲8.58 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▼0.06 | 105.02 ▼5.31 | 47.78 ▲0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/storytelling/templates/inside-container/triple-col.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/storytelling/templates/outside-container/double-col.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/storytelling/templates/outside-container/triple-col.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/storytelling/templates/inside-container/double-col.php:13
- > PHP Fatal error
Uncaught Error: Class 'Storytelling__kickstarter' not found in wp-content/plugins/storytelling/core/inc/story__structure.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function the_chapter_title() in wp-content/plugins/storytelling/macro-template-example.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/storytelling/index.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Page / Post Sidebar where Chapter - Macro-template - are available), #2 (Storytelling folder example in your theme), #3 (Metabox with various content), #4 (Another metabox with other various content), #5 (Final result - [Storytelling Website](http://storytelling.io/ "Storytelling for WordPress"))
storytelling/index.php 92% from 13 tests
The principal PHP file in "Storytelling" v. 1.3.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("storytelling.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,576 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 709 | 302 | 1,258 |
JavaScript | 1 | 95 | 37 | 162 |
CSS | 1 | 13 | 12 | 118 |
PO File | 1 | 11 | 14 | 38 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/image/damier.png | 0.18KB | 0.09KB | ▼ 47.22% |