Benchmarks
Plugin footprint 65% 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.03MB] [CPU: ▼9.89ms] Passed 4 tests
This is a short check of server-side resources used by Spectacu.la Discussion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.30 ▼4.03 |
Dashboard /wp-admin | 3.35 ▲0.00 | 50.37 ▼19.85 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.80 ▼3.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.08 ▼12.23 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.02 ▼1.68 |
Spectacu.la Discussion /wp-admin/options-general.php?page=spectacula_threaded_comments | 3.23 | 35.09 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 59 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_spec_comment_log |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
spec_comment_dbv |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Spectacu.la Discussion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.24 ▼1.14 | 1.63 ▼0.60 | 41.48 ▼3.57 |
Dashboard /wp-admin | 2,225 ▲22 | 4.86 ▼1.02 | 105.74 ▼8.08 | 42.89 ▼1.27 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▼0.01 | 39.41 ▲1.83 | 34.64 ▼2.32 |
Add New Post /wp-admin/post-new.php | 6,224 ▲4,698 | 19.05 ▲1.46 | 945.61 ▲270.37 | 52.12 ▲0.71 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▲0.00 | 111.01 ▲6.92 | 48.86 ▲5.34 |
Spectacu.la Discussion /wp-admin/options-general.php?page=spectacula_threaded_comments | 1,133 | 2.21 | 26.97 | 25.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_spec_comment_log
- The uninstall procedure has failed, leaving 7 options in the database
- spec_comment_dbv
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=spectacula_threaded_comments
- > Warning in wp-content/plugins/spectacula-threaded-comments/includes/functions.php+117
closedir() expects parameter 1 to be resource, string given
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spectacula-threaded-comments/includes/db.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function comments_open() in wp-content/plugins/spectacula-threaded-comments/includes/template.php:10
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/spectacula-threaded-comments/commenting.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/spectacula-threaded-comments/includes/options-page.php:265
- > PHP Fatal error
Uncaught Error: Call to undefined function set_url_scheme() in wp-content/plugins/spectacula-threaded-comments/commenting.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== spectacula-threaded-comments ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Will work on both dark and light themes thanks to alternative stylesheet), #2 (The control interface for this plug-in.)
spectacula-threaded-comments/commenting.php 92% from 13 tests
The main PHP script in "Spectacu.la Discussion" version 2.3.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spectacula-threaded-comments.php" instead of "commenting.php")
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
Everything looks great! No dangerous files found in this plugin9,971 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 5,807 |
PHP | 7 | 437 | 565 | 1,471 |
CSS | 4 | 177 | 32 | 1,089 |
JavaScript | 14 | 192 | 190 | 838 |
HTML | 9 | 19 | 0 | 450 |
PO File | 2 | 129 | 166 | 276 |
Markdown | 1 | 27 | 0 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 40.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.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 | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.45% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
style/arrow-left-alt.png | 0.61KB | 0.47KB | ▼ 21.86% |
style/badge-new.png | 0.50KB | 0.37KB | ▼ 25.83% |
style/system-error.png | 0.40KB | 0.32KB | ▼ 20.53% |