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.02MB] [CPU: ▼6.78ms] Passed 4 tests
This is a short check of server-side resources used by TwoSides
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 21.04 ▼20.34 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.24 ▼2.05 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.97 ▲4.57 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.90 ▼8.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 33.18 ▲3.39 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
twosides_debate_date_plugin_activated |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for TwoSides
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,056 ▲310 | 15.53 ▲1.15 | 5.64 ▲3.85 | 37.20 ▼10.73 |
Dashboard /wp-admin | 2,379 ▲191 | 6.64 ▲0.63 | 141.29 ▲36.59 | 44.19 ▲7.72 |
Posts /wp-admin/edit.php | 2,282 ▲190 | 3.67 ▲1.66 | 49.87 ▲8.01 | 29.32 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.34 ▲5.71 | 616.04 ▼46.73 | 35.26 ▼25.99 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.35 ▲0.12 | 79.19 ▼17.49 | 40.86 ▼2.22 |
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 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/twosides/includes/twosides-debate-admin-forms.php
- > /wp-content/plugins/twosides/index.php
- > /wp-content/plugins/twosides/includes/twosides-debate-shortcodes.php
- > /wp-content/plugins/twosides/twosides.php
- > /wp-content/plugins/twosides/includes/twosides-debate-admin-settings.php
- > /wp-content/plugins/twosides/includes/twosides-debate-functions.php
- > /wp-content/plugins/twosides/includes/twosides-debate-helpers.php
- > /wp-content/plugins/twosides/library/index.php
- > /wp-content/plugins/twosides/includes/index.php
- > /wp-content/plugins/twosides/languages/index.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twosides/templates/twosides-debate-comments_templater.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function comments_open() in wp-content/plugins/twosides/templates/comments.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twosides/templates/twosides-comments_templater.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: split comments, catalog, responsive, opinions, metabox...
twosides/twosides.php Passed 13 tests
The main file in "TwoSides" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
95 characters long description:
Display comments in a side by side fashion and divide each side as positive or negative styled.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,480 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 146 | 416 | 1,190 |
CSS | 2 | 5 | 5 | 275 |
JavaScript | 2 | 2 | 1 | 13 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 57 | |
▷ Named functions | 56 | 98.25% |
▷ Anonymous functions | 1 | 1.75% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/imgs/icon-128x128.png | 4.51KB | 2.95KB | ▼ 34.75% |