89% pryc-wp-remove-languages-for-divi

Code Review | PRyC WP: Languages remover for Divi Builder

WordPress plugin PRyC WP: Languages remover for Divi Builder scored89%from 54 tests.

About plugin

  • Plugin page: pryc-wp-remove-la...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 26, 2019
  • Latest release: Jun 20, 2023
  • Number of updates: 7
  • Update frequency: every 181.9 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /679 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.51ms] Passed 4 tests

A check of server-side resources used by PRyC WP: Languages remover for Divi Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.19 ▲2.63
Dashboard /wp-admin3.31 ▲0.0052.29 ▼1.72
Posts /wp-admin/edit.php3.36 ▲0.0048.50 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.25 ▼4.64
Media Library /wp-admin/upload.php3.23 ▲0.0037.40 ▼0.28

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for PRyC WP: Languages remover for Divi Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼0.801.59 ▼0.2040.79 ▼0.38
Dashboard /wp-admin2,206 ▲155.79 ▼0.02105.80 ▼5.4241.57 ▼11.36
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0239.92 ▲0.5035.60 ▼0.26
Add New Post /wp-admin/post-new.php1,533 ▲523.18 ▲5.11649.43 ▲39.1163.40 ▲5.13
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.03117.53 ▲11.8249.62 ▲3.55

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: language, elegant themes, lang, extra, wordpress...

pryc-wp-remove-languages-for-divi/pryc-wp-remove-languages-for-divi-builder.php 85% from 13 tests

The main PHP file in "PRyC WP: Languages remover for Divi Builder" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pryc-wp-remove-languages-for-divi.php" instead of "pryc-wp-remove-languages-for-divi-builder.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201463

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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 functions1100.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
There are no PNG files in this plugin