Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼294.84ms] Passed 4 tests
An overview of server-side resources used by 001 Prime Strategy Translate Accelerator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.37 ▲3.96 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.25 ▼1.22 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.11 ▼1.96 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 89.82 ▼1,177.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 25.14 ▲1.60 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 001 Prime Strategy Translate Accelerator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲24 | 15.98 ▲0.32 | 5.76 ▼0.34 | 2.18 ▲0.06 |
Dashboard /wp-admin | 2,894 ▲36 | 6.11 ▼0.09 | 118.66 ▼14.53 | 155.42 ▼2.55 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.23 ▼0.01 | 62.88 ▼3.89 | 139.76 ▼13.71 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 20.89 ▲4.22 | 427.50 ▲19.43 | 151.92 ▲3.04 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.46 ▼0.05 | 139.53 ▼1.84 | 187.30 ▲4.32 |
Translate Accelerator /wp-admin/001-prime-strategy-translate-accelerator.php | 26 | 0.94 | 0.03 | 19.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/001-prime-strategy-translate-accelerator/001-prime-strategy-translate-accelerator.php:32
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/001-prime-strategy-translate-accelerator.php
- > Network (severe)
wp-admin/001-prime-strategy-translate-accelerator.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
2 plugin tags: speed up, translate
001-prime-strategy-translate-accelerator/001-prime-strategy-translate-accelerator.php 92% from 13 tests
The principal PHP file in "001 Prime Strategy Translate Accelerator" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin360 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 22 | 268 |
PO File | 2 | 30 | 48 | 92 |
PHP code Passed 2 tests
This is a very shot review 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.47 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ps_logo.png | 3.10KB | 1.48KB | ▼ 52.27% |
images/icon32.png | 1.89KB | 1.34KB | ▼ 29.07% |