Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼14.04ms] Passed 4 tests
This is a short check of server-side resources used by Story Lines
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 39.72 ▼7.59 |
Dashboard /wp-admin | 3.33 ▲0.03 | 33.06 ▼15.35 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 35.08 ▼9.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 76.44 ▼23.30 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.70 ▼0.10 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_story_lines_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Story Lines
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 13.20 ▼1.10 | 1.57 ▼0.23 | 41.16 ▼5.36 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲1.07 | 104.94 ▼4.22 | 38.71 ▼6.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.01 | 38.84 ▼1.36 | 33.44 ▼1.15 |
Add New Post /wp-admin/post-new.php | 6,545 ▲5,026 | 27.79 ▲4.56 | 903.98 ▲210.13 | 43.17 ▼6.75 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.21 ▼0.02 | 97.55 ▼7.36 | 44.43 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_story_lines_widget
- db_upgraded
- 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 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/story-lines/blocks/build/story-lines/template.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/story-lines/public/partials/story-lines-widget.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/story-lines/admin/partials/story-lines-meta-box.php:17
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (The Story Lines display in the post.), #2 (The Story Lines section of the post editor.)
story-lines/story-lines.php Passed 13 tests
The principal PHP file in "Story Lines" v. 2.1 is loaded by WordPress automatically on each request
117 characters long description:
Add a list of story highlights at the top of your posts to let your readers really know what your story is all about.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,170 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 189 | 600 | 579 |
PO File | 6 | 132 | 162 | 453 |
Markdown | 3 | 22 | 0 | 74 |
JSON | 1 | 0 | 0 | 55 |
CSS | 5 | 1 | 3 | 5 |
JavaScript | 4 | 0 | 3 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 5.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 37 | 82.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 17.78% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.38MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 142.66KB | 55.39KB | ▼ 61.17% |
screenshot-2.png | 226.37KB | 74.25KB | ▼ 67.20% |
images/story-lines.png | 15.92KB | 1.01KB | ▼ 93.64% |