Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.55ms] Passed 4 tests
A check of server-side resources used by Series
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.91 ▲3.70 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.30 ▼1.54 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.62 ▼6.44 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.80 ▼10.64 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.15 ▲0.42 |
Series /wp-admin/options-general.php?page=series-settings | 3.24 | 32.50 |
Series /wp-admin/edit-tags.php?taxonomy=series | 3.27 | 34.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_series-list-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_series-list-related |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Series
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.51 ▼0.92 | 4.51 ▲2.71 | 43.57 ▲3.34 |
Dashboard /wp-admin | 2,214 ▲23 | 5.91 ▲1.03 | 104.76 ▼3.28 | 36.92 ▼6.92 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 1.99 ▼0.02 | 34.47 ▼5.12 | 32.12 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 23.57 ▲0.40 | 592.89 ▼12.84 | 47.97 ▲0.44 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.15 ▼0.07 | 97.74 ▼4.72 | 39.75 ▼6.98 |
Series /wp-admin/options-general.php?page=series-settings | 921 | 2.05 | 22.77 | 32.98 |
Series /wp-admin/edit-tags.php?taxonomy=series | 1,242 | 2.13 | 27.39 | 29.02 |
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: 8 options
- theysaidso_admin_options
- widget_recent-posts
- widget_series-list-related
- widget_recent-comments
- widget_series-list-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Series\\trailingslashit() in wp-content/plugins/series/series.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function Series\\add_action() in wp-content/plugins/series/inc/functions-taxonomies.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function Series\\add_action() in wp-content/plugins/series/inc/functions-filters.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/series/inc/widgets/class-list-posts.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function Series\\add_action() in wp-content/plugins/series/inc/functions-shortcodes.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/series/inc/widgets/class-list-related.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function Series\\add_action() in wp-content/plugins/series/admin/class-settings.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Series meta box on the edit post screen.), #2 (Widgets on the widgets admin screen.), #3 (Manage series admin screen.), #4 (Example widget output in theme.)
series/series.php Passed 13 tests
"Series" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Plugin that allows you to collect posts in a series.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin969 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 270 | 663 | 640 |
Markdown | 4 | 97 | 0 | 329 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 34 | |
▷ Named functions | 34 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 4.88KB | 4.65KB | ▼ 4.66% |
screenshot-1.png | 18.41KB | 9.94KB | ▼ 46.02% |
screenshot-2.png | 11.94KB | 6.12KB | ▼ 48.79% |
screenshot-3.png | 20.80KB | 20.76KB | 0.20% |