Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼146.98ms] Passed 4 tests
Analyzing server-side resources used by Arena.IM - Live Blogging for real-time events
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 34.33 ▲12.00 |
Dashboard /wp-admin | 3.17 ▲0.12 | 47.19 ▼5.30 |
Posts /wp-admin/edit.php | 3.26 ▲0.15 | 43.37 ▲6.61 |
Add New Post /wp-admin/post-new.php | 5.07 ▼0.36 | 58.12 ▼586.70 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 32.89 ▼2.51 |
Arena /wp-admin/options-general.php?page=albfre_plugin | 3.10 | 31.99 |
Arena Wizard /wp-admin/admin.php?page=albfre_list_events | 3.09 | 31.68 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 82 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Arena.IM - Live Blogging for real-time events
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 16.24 ▲0.24 | 8.38 ▼0.85 | 49.48 ▲0.65 |
Dashboard /wp-admin | 2,980 ▲46 | 6.00 ▲0.05 | 140.05 ▼4.13 | 105.09 ▼7.65 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.71 ▼0.02 | 62.64 ▼5.34 | 86.55 ▼8.30 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.82 ▲0.17 | 415.09 ▲27.67 | 104.26 ▲2.03 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.01 ▼0.01 | 194.39 ▲34.29 | 121.47 ▲9.96 |
Arena /wp-admin/options-general.php?page=albfre_plugin | 1,112 | 2.09 | 57.18 | 92.66 |
Arena Wizard /wp-admin/admin.php?page=albfre_list_events | 987 | 2.14 | 52.44 | 50.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/arena-liveblog-and-chat-tool/albfre.php:131
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
arena-liveblog-and-chat-tool/albfre.php 85% from 13 tests
This is the main PHP file of "Arena.IM - Live Blogging for real-time events" version 0.2.9, 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: Name the main plugin file the same as the plugin slug ("arena-liveblog-and-chat-tool.php" instead of "albfre.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin10,249 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,211 |
JavaScript | 6 | 169 | 54 | 1,152 |
CSS | 5 | 99 | 2 | 682 |
Sass | 3 | 88 | 1 | 607 |
PHP | 7 | 72 | 91 | 493 |
PO File | 1 | 32 | 0 | 74 |
Markdown | 1 | 8 | 0 | 17 |
SVG | 3 | 0 | 0 | 13 |
PHP code Passed 2 tests
A short review of 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.12 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
48 compressed PNG files occupy 2.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sports/albfre_boxing.png | 10.04KB | 9.92KB | ▼ 1.23% |
assets/sports/albfre_politics.png | 12.40KB | 12.44KB | 0.00% |
assets/albfre_logo-bg.png | 9.53KB | 4.20KB | ▼ 55.87% |
assets/sports/albfre_cyclism.png | 12.07KB | 12.21KB | 0.00% |
assets/sports/albfre_rugby.png | 10.79KB | 10.44KB | ▼ 3.28% |