90% speed-up-translation

Code Review | Speed Up - Translation Cache

WordPress plugin Speed Up - Translation Cache scored90%from 54 tests.

About plugin

  • Plugin page: speed-up-translation
  • Plugin version: 1.0.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Jul 9, 2023
  • Number of updates: 45
  • Update frequency: every 55.9 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.10ms] Passed 4 tests

A check of server-side resources used by Speed Up - Translation Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0238.94 ▼6.45
Dashboard /wp-admin3.31 ▲0.0145.74 ▼6.14
Posts /wp-admin/edit.php3.37 ▲0.0145.61 ▼1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.21 ▼0.51
Media Library /wp-admin/upload.php3.24 ▲0.0135.58 ▼2.40

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Speed Up - Translation Cache
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.644.70 ▲2.8543.37 ▲0.29
Dashboard /wp-admin2,203 ▲125.83 ▼0.0597.44 ▼6.4538.59 ▼3.64
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0338.46 ▲3.5336.11 ▲2.33
Add New Post /wp-admin/post-new.php1,534 ▲623.04 ▼0.27672.45 ▲13.7860.01 ▲4.61
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.05101.60 ▲4.9943.01 ▲0.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 22 tag instead of maximum 10
The official readme.txt might help

speed-up-translation/speed-up-translation.php Passed 13 tests

The main PHP file in "Speed Up - Translation Cache" ver. 1.0.19 adds more information about the plugin and also serves as the entry point for this plugin
124 characters long description:
The translations reduces speed of Wordpress. This plugin offers a caching solution that reduces this effects on performance.

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
Everything looks great! No dangerous files found in this plugin60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1326860

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin