88% 001-prime-strategy-translate-accelerator

Code Review | 001 Prime Strategy Translate Accelerator

WordPress plugin 001 Prime Strategy Translate Accelerator scored 88% from 54 tests.

About plugin

  • Plugin page: 001-prime-strateg...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.4.2
  • WordPress version: 5.9.2
  • First release: Jul 20, 2011
  • Latest release: Apr 4, 2016
  • Number of updates: 22
  • Update frequency: every 134.7 days
  • Top authors: primestrategy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

9,000+ active / 63,281 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.37 ▲3.96
Dashboard /wp-admin3.43 ▲0.0232.25 ▼1.22
Posts /wp-admin/edit.php3.65 ▲0.0135.11 ▼1.96
Add New Post /wp-admin/post-new.php6.89 ▼0.0889.82 ▼1,177.77
Media Library /wp-admin/upload.php3.30 ▲0.0125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2415.98 ▲0.325.76 ▼0.342.18 ▲0.06
Dashboard /wp-admin2,894 ▲366.11 ▼0.09118.66 ▼14.53155.42 ▼2.55
Posts /wp-admin/edit.php2,693 ▲53.23 ▼0.0162.88 ▼3.89139.76 ▼13.71
Add New Post /wp-admin/post-new.php1,755 ▲9420.89 ▲4.22427.50 ▲19.43151.92 ▲3.04
Media Library /wp-admin/upload.php1,703 ▲55.46 ▼0.05139.53 ▼1.84187.30 ▲4.32
Translate Accelerator /wp-admin/001-prime-strategy-translate-accelerator.php260.940.0319.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP14622268
PO File2304892

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 code0.47
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity5.58
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/ps_logo.png3.10KB1.48KB▼ 52.27%
images/icon32.png1.89KB1.34KB▼ 29.07%