Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▲0.73ms] Passed 4 tests
This is a short check of server-side resources used by SV Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲0.80 | 46.85 ▲3.89 |
Dashboard /wp-admin | 4.21 ▲0.91 | 53.94 ▲0.88 |
Posts /wp-admin/edit.php | 4.26 ▲0.91 | 50.89 ▼4.35 |
Add New Post /wp-admin/post-new.php | 6.79 ▲0.91 | 99.13 ▲4.74 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 42.95 ▲2.48 |
Info /wp-admin/admin.php?page=straightvisions | 4.15 | 43.96 |
SV Posts /wp-admin/admin.php?page=sv_posts | 4.10 | 43.15 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
sv_posts_scripts_settings_sv_core_color_picker_attached |
theysaidso_admin_options |
sv_posts_scripts_settings_flush_css_cache |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SV Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 14.25 ▼0.11 | 1.85 ▲0.13 | 40.93 ▼0.97 |
Dashboard /wp-admin | 2,315 ▲135 | 5.50 ▼0.03 | 86.80 ▼3.97 | 73.90 ▲30.32 |
Posts /wp-admin/edit.php | 2,229 ▲123 | 1.97 ▲0.00 | 34.50 ▼4.94 | 33.02 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6,329 ▲4,803 | 19.39 ▼3.67 | 1,052.14 ▲419.72 | 40.70 ▼10.81 |
Media Library /wp-admin/upload.php | 1,532 ▲129 | 4.18 ▼0.05 | 94.99 ▼3.17 | 81.13 ▲34.52 |
Info /wp-admin/admin.php?page=straightvisions | 1,580 | 10.64 | 196.07 | 136.99 |
SV Posts /wp-admin/admin.php?page=sv_posts | 1,466 | 10.50 | 83.20 | 140.96 |
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 did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- sv_posts_scripts_settings_flush_css_cache
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- sv_posts_scripts_settings_sv_core_color_picker_attached
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_checkbox_field.php
- 244× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'sv_core\\sv_abstract' not found in wp-content/plugins/sv-posts/src/core_plugin/core/info/info.php:5
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_email.php on line 5
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_textarea.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_select_page.php:9
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_checkbox_field.php on line 15
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_password.php on line 8
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_font_tpl/text_transform.php on line 1
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_email.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sv-posts/src/core_plugin/core/settings/tpl/setting_margin.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sv-posts/src/lib/modules/sv_posts/lib/frontend/tpl/style_list.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: masonry, grid, list, latest posts, post gallery
sv-posts/sv_posts.php 85% from 13 tests
Analyzing the main PHP file in "SV Posts" version 2.0.00
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sv-posts.php" instead of "sv_posts.php")
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 detected24,350 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,267 |
PHP | 100 | 1,244 | 1,442 | 6,143 |
JavaScript | 44 | 1,318 | 251 | 5,357 |
CSS | 34 | 417 | 125 | 3,590 |
PO File | 2 | 423 | 613 | 818 |
SVG | 4 | 0 | 0 | 587 |
Sass | 2 | 99 | 40 | 586 |
Markdown | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 1 | 2.56% |
▷ Concrete classes | 38 | 97.44% |
▷ Final classes | 0 | 0.00% |
Methods | 474 | |
▷ Static methods | 8 | 1.69% |
▷ Public methods | 419 | 88.40% |
▷ Protected methods | 30 | 6.33% |
▷ Private methods | 25 | 5.27% |
Functions | 20 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 20 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin