Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.81MB] [CPU: ▼29.03ms] Passed 4 tests
An overview of server-side resources used by Acronyms 2
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.55 ▲2.52 |
Dashboard /wp-admin | 3.13 ▼0.17 | 32.45 ▼15.05 |
Posts /wp-admin/edit.php | 3.13 ▼0.23 | 25.56 ▼20.90 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 23.61 ▼67.54 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 21.29 ▼12.61 |
Acronyms /wp-admin/tools.php?page=acronyms-2/acronyms.php | 3.13 | 22.31 |
Server storage [IO: ▲0.07MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
acronym_html5 |
acronym_acronyms |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
acronym_comments |
acronym_content |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Acronyms 2
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.09 | 1.80 ▲0.09 | 40.05 ▼0.34 |
Dashboard /wp-admin | 2,199 ▲35 | 5.62 ▼0.04 | 84.50 ▼16.77 | 36.55 ▼5.24 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.06 | 33.51 ▼4.33 | 33.24 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.26 ▲0.31 | 605.63 ▲8.71 | 56.41 ▲3.04 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.04 | 96.12 ▼9.72 | 41.98 ▼3.03 |
Acronyms /wp-admin/tools.php?page=acronyms-2/acronyms.php | 1,574 | 2.03 | 27.34 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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)
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=acronyms-2/acronyms.php
- > User deprecated in wp-includes/functions.php+5453
Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acronyms-2/acronyms.php:691
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The admin UI), #2 (Acronyms output in Twenty Eleven)
acronyms-2/acronyms.php 85% from 13 tests
This is the main PHP file of "Acronyms 2" version 2.0.8, 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 296 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acronyms-2.php" instead of "acronyms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin599 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 84 | 544 |
PO File | 1 | 19 | 24 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 15 | 100.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.10KB | 12.01KB | ▼ 60.10% |
screenshot-2.png | 13.63KB | 13.25KB | ▼ 2.78% |