Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.40ms] Passed 4 tests
An overview of server-side resources used by Epoch - A native Disqus alternative with a focus on speed and privacy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▼0.37 | 26.25 ▼18.45 |
Dashboard /wp-admin | 3.47 ▲0.12 | 50.39 ▼14.09 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.66 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 100.44 ▼9.80 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 37.37 ▼0.88 |
Epoch /wp-admin/options-general.php?page=epoch | 3.39 | 34.98 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 7 new options
New WordPress options |
---|
epoch_ver |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Epoch - A native Disqus alternative with a focus on speed and privacy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲144 | 13.74 ▼0.43 | 19.35 ▲17.35 | 45.90 ▲2.00 |
Dashboard /wp-admin | 2,196 ▲22 | 5.60 ▼0.08 | 92.74 ▲1.18 | 40.73 ▼2.16 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.04 ▲0.06 | 39.96 ▼1.95 | 35.61 ▼7.57 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.51 ▲0.07 | 681.28 ▼16.96 | 64.66 ▲10.20 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.02 | 98.79 ▼16.70 | 42.26 ▼8.00 |
Epoch /wp-admin/options-general.php?page=epoch | 1,351 | 6.06 | 120.89 | 52.41 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- epoch_ver
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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 | 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
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'postmatic\\epoch\\front\\vars' not found in wp-content/plugins/epoch/classes/front/api_paths.php:15
- > PHP Fatal error
Uncaught Error: Class 'postmatic\\epoch\\core' not found in wp-content/plugins/epoch/classes/settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'postmatic\\epoch\\core' not found in wp-content/plugins/epoch/bootstrap.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/epoch/vendor/calderawp/magic-tags/tests/tests-get_var.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function epoch_postmatic_link() in wp-content/plugins/epoch/includes/templates/about-panel.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/epoch/includes/templates/comment-template.php:12
- > PHP Fatal error
Uncaught Error: Class 'postmatic\\epoch\\options' not found in wp-content/plugins/epoch/includes/edit.php:11
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/epoch/vendor/calderawp/magic-tags/tests/bootstrap.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'postmatic\\epoch\\options' not found in wp-content/plugins/epoch/classes/front/templates/initial.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function epoch_postmatic_link() in wp-content/plugins/epoch/includes/templates/postmatic-panel.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: You are using too many tags: 23 tag instead of maximum 10
epoch/plugincore.php 92% from 13 tests
This is the main PHP file of "Epoch - A native Disqus alternative with a focus on speed and privacy" version 1.0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("epoch.php" instead of "plugincore.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin25,364 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 3,064 | 2,376 | 19,419 |
CSS | 10 | 424 | 67 | 2,697 |
PHP | 35 | 915 | 1,651 | 2,401 |
PO File | 3 | 131 | 146 | 428 |
JSON | 4 | 2 | 0 | 159 |
HTML | 2 | 11 | 0 | 96 |
Markdown | 3 | 24 | 0 | 71 |
Bourne Shell | 1 | 15 | 4 | 59 |
SVG | 1 | 0 | 0 | 20 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 37 | 28.03% |
▷ Public methods | 105 | 79.55% |
▷ Protected methods | 19 | 14.39% |
▷ Private methods | 8 | 6.06% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
10 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/postmatic-white.png | 23.92KB | 13.64KB | ▼ 42.96% |
assets/image/logo.png | 11.06KB | 6.26KB | ▼ 43.44% |
vendor/calderawp/magic-tags/tests/data/run-action-banner.png | 35.44KB | 11.72KB | ▼ 66.92% |
assets/image/love.png | 30.78KB | 14.74KB | ▼ 52.09% |
assets/image/configure.png | 2.52KB | 2.17KB | ▼ 14.10% |