Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼0.37ms] Passed 4 tests
This is a short check of server-side resources used by StoryChief
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 48.42 ▲5.32 |
Dashboard /wp-admin | 3.67 ▲0.32 | 54.42 ▼14.64 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 57.41 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 104.60 ▲2.46 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 43.62 ▲5.38 |
StoryChief /wp-admin/options-general.php?page=storychief | 3.56 | 48.35 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for StoryChief
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.38 | 1.58 ▼0.53 | 42.48 ▲0.70 |
Dashboard /wp-admin | 2,193 ▲13 | 5.61 ▼0.07 | 92.66 ▼2.95 | 41.97 ▲0.77 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.09 | 41.56 ▲4.48 | 35.82 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.40 ▼4.83 | 636.96 ▼61.77 | 66.85 ▼5.73 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.17 ▼0.02 | 100.77 ▼0.56 | 43.74 ▲0.23 |
StoryChief /wp-admin/options-general.php?page=storychief | 1,056 | 2.00 | 22.73 | 28.79 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/story-chief/storychief.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'STORYCHIEF_DIR/includes/lib/wp-async-task/wp-async-task.php' (include_path='.:/usr/share/php') in wp-content/plugins/story-chief/includes/async-tasks.php on line 16
- > PHP Warning
require_once(STORYCHIEF_DIR/includes/lib/wp-async-task/wp-async-task.php): failed to open stream: No such file or directory in wp-content/plugins/story-chief/includes/async-tasks.php on line 16
- > PHP Notice
Undefined variable: type in wp-content/plugins/story-chief/views/notice.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function Storychief\\Formatting\\add_action() in wp-content/plugins/story-chief/includes/formatting.php:12
- > PHP Notice
Undefined variable: type in wp-content/plugins/story-chief/views/notice.php on line 36
- > PHP Fatal error
Uncaught Error: Call to undefined function Storychief\\Webhook\\add_action() in wp-content/plugins/story-chief/includes/webhook.php:18
- > PHP Warning
Use of undefined constant STORYCHIEF_DIR - assumed 'STORYCHIEF_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/story-chief/includes/async-tasks.php on line 16
- > PHP Notice
Undefined variable: type in wp-content/plugins/story-chief/views/notice.php on line 22
- > PHP Notice
Undefined variable: type in wp-content/plugins/story-chief/views/notice.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Task' not found in wp-content/plugins/story-chief/includes/async-tasks/class-sideloadimages.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
7 plugin tags: schedule posts to linkedin, content marketing calendar, schedule facebook posts, content marketing, schedule to twitter...
story-chief/storychief.php 85% from 13 tests
The principal PHP file in "StoryChief" v. 1.0.37 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("story-chief.php" instead of "storychief.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,588 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 290 | 507 | 1,428 |
Markdown | 2 | 42 | 0 | 103 |
JSON | 1 | 0 | 0 | 37 |
CSS | 3 | 2 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 19 | 54.29% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 7 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.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
There were not PNG files found in your plugin