90% wpcasa-polylang

Code Review | WPCasa Polylang

WordPress plugin WPCasa Polylang scored90%from 54 tests.

About plugin

  • Plugin page: wpcasa-polylang
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Jan 19, 2022
  • Number of updates: 14
  • Update frequency: every 156.3 days
  • Top authors: wpSight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,877 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.03MB] [CPU: ▼3.50ms] Passed 4 tests

This is a short check of server-side resources used by WPCasa Polylang
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.35 ▲2.92
Dashboard /wp-admin3.34 ▲0.0350.51 ▼4.56
Posts /wp-admin/edit.php3.39 ▲0.0348.29 ▼0.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.89 ▼10.43
Media Library /wp-admin/upload.php3.26 ▲0.0338.16 ▲1.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WPCasa Polylang
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.30 ▼1.291.82 ▼0.1047.47 ▲5.67
Dashboard /wp-admin2,221 ▲154.83 ▼1.04103.61 ▼3.6242.26 ▼3.59
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0535.71 ▼6.5935.18 ▲0.40
Add New Post /wp-admin/post-new.php1,545 ▼023.17 ▼0.43674.00 ▼4.9052.27 ▼5.00
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.1397.93 ▼13.4542.45 ▼6.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

wpcasa-polylang/wpcasa-polylang.php Passed 13 tests

The primary PHP file in "WPCasa Polylang" version 1.1.1 is used by WordPress to initiate all plugin functionality
78 characters long description:
Add support for Polylang to manage WPCasa property data in multiple languages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected414 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162340231
XML1210109
PO File2121274

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity22.50
▷ Minimum class complexity22.00
▷ Maximum class complexity23.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG images were found in this plugin