84% custom-language-packs

Code Review | Custom Language Packs

WordPress plugin Custom Language Packs scored84%from 54 tests.

About plugin

  • Plugin page: custom-language-p...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 1, 2014
  • Latest release: Sep 1, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pavelevap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,697 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼6.34ms] Passed 4 tests

A check of server-side resources used by Custom Language Packs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.91 ▼5.12
Dashboard /wp-admin3.31 ▲0.0144.54 ▼6.59
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▲2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.20 ▼11.06
Media Library /wp-admin/upload.php3.24 ▲0.0032.92 ▼2.57

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Custom Language Packs: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.48 ▲0.121.73 ▼0.2238.15 ▼8.55
Dashboard /wp-admin2,200 ▲125.82 ▲0.9199.36 ▼38.8136.87 ▼7.16
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0238.61 ▲1.3734.23 ▲0.90
Add New Post /wp-admin/post-new.php1,514 ▼2317.56 ▼5.13613.22 ▼40.6845.70 ▼11.37
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0494.53 ▼4.4043.27 ▼0.89

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
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-language-packs/custom-language-packs.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt might help

custom-language-packs/custom-language-packs.php Passed 13 tests

This is the main PHP file of "Custom Language Packs" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Custom Language Packs allows disabling automatic language updates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG files were detected