Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.47ms] Passed 4 tests
Analyzing server-side resources used by Another Unit Converter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.36 | 44.91 ▲3.77 |
Dashboard /wp-admin | 3.67 ▲0.37 | 46.47 ▼5.67 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 51.28 ▼0.61 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 87.66 ▼7.37 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 39.23 ▲7.62 |
Another Unit Converter /wp-admin/options-general.php?page=aucp_settings | 3.56 | 31.95 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
aucp_settings |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Another Unit Converter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.67 ▼0.92 | 4.42 ▲2.48 | 44.15 ▼8.38 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▼0.04 | 96.89 ▼7.46 | 37.82 ▼5.70 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.05 | 34.90 ▼1.73 | 31.47 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.40 ▲0.34 | 674.39 ▼2.10 | 51.52 ▲3.79 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.26 ▼0.03 | 96.07 ▼4.54 | 43.42 ▲1.40 |
Another Unit Converter /wp-admin/options-general.php?page=aucp_settings | 1,549 | 2.02 | 27.71 | 29.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- aucp_settings
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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 | 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-unit-converter/includes/class-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/another-unit-converter/templates/currency-switcher-not-ready.tpl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/another-unit-converter/templates/currency-switcher.tpl.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: conversion, currency, currency switcher, money, price converter...
another-unit-converter/another-unit-converter.php 92% from 13 tests
The entry point to "Another Unit Converter" version 1.1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
No dangerous file extensions were detected3,069 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 249 | 65 | 2,567 |
LESS | 23 | 51 | 13 | 324 |
JavaScript | 2 | 45 | 16 | 177 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 60 | |
▷ Static methods | 1 | 1.67% |
▷ Public methods | 52 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 13.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin