Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.73ms] Passed 4 tests
An overview of server-side resources used by Neykane Viral List Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 43.54 ▲3.77 |
Dashboard /wp-admin | 3.52 ▲0.21 | 56.90 ▲8.14 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.58 ▼4.20 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.31 | 88.12 ▼17.14 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.88 ▼1.35 |
Add New /wp-admin/post-new.php?post_type=list_posts | 3.68 | 58.22 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=list_posts | 3.44 | 41.62 |
All List Posts /wp-admin/edit.php?post_type=list_posts | 3.50 | 41.42 |
Settings /wp-admin/edit.php?post_type=list_posts&page=settings | 3.42 | 33.15 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=list_posts | 3.44 | 37.25 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
category_children |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Neykane Viral List Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.24 ▼0.11 | 1.86 ▲0.25 | 43.54 ▼1.62 |
Dashboard /wp-admin | 2,234 ▲54 | 5.54 ▼0.12 | 83.86 ▼14.03 | 39.94 ▼4.43 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.03 ▲0.02 | 36.46 ▼3.95 | 35.31 ▲4.50 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.49 ▲0.26 | 685.72 ▼23.70 | 56.90 ▼5.99 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.20 ▲0.06 | 102.08 ▼3.06 | 44.12 ▼1.92 |
Add New /wp-admin/post-new.php?post_type=list_posts | 3,133 | 9.47 | 200.97 | 153.35 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=list_posts | 1,494 | 2.24 | 29.64 | 34.07 |
All List Posts /wp-admin/edit.php?post_type=list_posts | 1,189 | 2.57 | 42.96 | 31.22 |
Settings /wp-admin/edit.php?post_type=list_posts&page=settings | 833 | 2.03 | 23.95 | 26.69 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=list_posts | 1,358 | 2.12 | 31.54 | 31.55 |
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 7 options in the database
- widget_theysaidso_widget
- category_children
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 esc_html() in wp-content/plugins/neykane-viral-list-posts/admin/partials/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/neykane-viral-list-posts/public/partials/standard_1.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/neykane-viral-list-posts/public/partials/standard_2.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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: post, listicle, viral, neykane, list...
neykane-viral-list-posts/neykane-viral-list-posts.php Passed 13 tests
The primary PHP file in "Neykane Viral List Posts" version 1.1.1 is used by WordPress to initiate all plugin functionality
119 characters long description:
Adds a new "List Posts" Custom Post Type to help you create memorable, well-organized, and highly-shareable list posts.
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
Good job! No executable or dangerous file extensions detected1,619 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 192 | 539 | 1,134 |
JavaScript | 4 | 13 | 53 | 407 |
CSS | 4 | 16 | 10 | 78 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/item_placeholder.png | 11.53KB | 6.27KB | ▼ 45.57% |