Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AklamatorPrWidget::set_up_options() should not be called statically
Server metrics [RAM: ▲0.09MB] [CPU: ▼141.10ms] Passed 4 tests
Server-side resources used by Aklamator - Digital PR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.80 ▲16.28 |
Dashboard /wp-admin | 3.14 ▲0.09 | 52.22 ▲7.32 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 48.15 ▲1.55 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 91.85 ▼570.45 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 30.56 ▼2.82 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
aklamatorApplicationID |
aklamatorSingleWidgetTitle |
aklamatorSingleWidgetID |
aklamatorCategory |
aklamatorPageWidgetID |
aklamatorPoweredBy |
widget_wp_widget_aklamator |
aklamatorFeatured2Feed |
aklamatorWidgets |
Browser metrics Passed 4 tests
Checking browser requirements for Aklamator - Digital PR
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲101 | 15.83 ▼0.14 | 10.07 ▲0.77 | 49.98 ▼3.07 |
Dashboard /wp-admin | 2,982 ▲48 | 5.84 ▼0.28 | 134.10 ▼32.46 | 118.13 ▼2.91 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.71 ▲0.01 | 65.66 ▲2.88 | 96.72 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,696 ▼1,991 | 18.74 ▲3.62 | 403.08 ▼63.92 | 114.66 ▲4.20 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 4.99 ▼0.02 | 132.96 ▼27.44 | 141.31 ▲22.72 |
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
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AklamatorPrWidget::aklamator_uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 1 option
- widget_wp_widget_aklamator
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aklamator-digital-pr/includes/class-aklamator-widget-pr.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/aklamator-digital-pr/views/admin-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/aklamator-digital-pr/aklamator-digital-pr.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== aklamator-digital-pr ===
) - Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
aklamator-digital-pr/aklamator-digital-pr.php 92% from 13 tests
The main PHP script in "Aklamator - Digital PR" version 2.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)
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
Good job! No executable or dangerous file extensions detected833 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 163 | 58 | 511 |
JavaScript | 2 | 32 | 5 | 228 |
CSS | 2 | 13 | 3 | 94 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.36MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dataTables/images/sort_desc.png | 1.10KB | 0.17KB | ▼ 84.15% |
images/teaser-810x262.png | 279.89KB | 88.35KB | ▼ 68.43% |
assets/dataTables/images/sort_asc_disabled.png | 1.09KB | 0.17KB | ▼ 84.66% |
assets/dataTables/images/sort_both.png | 1.11KB | 0.25KB | ▼ 77.46% |
images/promo-300x200.png | 77.36KB | 27.52KB | ▼ 64.43% |