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.01MB] [CPU: ▼3.12ms] Passed 4 tests
Analyzing server-side resources used by Date Translator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 34.20 ▼7.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.64 ▼0.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.26 ▼0.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.24 ▼3.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.01 ▲0.27 |
Translate Date /wp-admin/options-general.php?page=nhndt-options | 3.22 | 30.52 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Date Translator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.19 | 1.70 ▼0.13 | 43.32 ▲0.15 |
Dashboard /wp-admin | 2,210 ▲25 | 5.78 ▲0.75 | 102.83 ▼13.81 | 39.36 ▼9.12 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.02 | 33.58 ▼0.60 | 34.67 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 21.50 ▼1.72 | 700.87 ▲21.83 | 54.74 ▲2.05 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.02 | 96.84 ▼7.65 | 43.41 ▼1.40 |
Translate Date /wp-admin/options-general.php?page=nhndt-options | 1,645 | 1.87 | 28.12 | 33.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/date-translator/date-translator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/date-translator/inc/display.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/date-translator/inc/admin.php:140
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=nhndt-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=nhndt-options
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (A post with translated date), #2 (Admin Panel), #3 (Admin Panel)
date-translator/date-translator.php Passed 13 tests
The main PHP file in "Date Translator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
This plugin will help you to display date in any language.Using the option page user can translate dates to wanted language.
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
No dangerous file extensions were detected226 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 18 | 29 | 226 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 60.11KB | 19.49KB | ▼ 67.57% |
screenshot-1.png | 16.49KB | 6.96KB | ▼ 57.79% |
screenshot-3.png | 42.71KB | 15.43KB | ▼ 63.88% |
banner-772x250.png | 15.01KB | 7.41KB | ▼ 50.63% |