68% osynlig-localization

Code Review | Osynlig Localization

WordPress plugin Osynlig Localization scored68%from 54 tests.

About plugin

  • Plugin page: osynlig-localization
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2015
  • Latest release: Apr 27, 2015
  • Number of updates: 9
  • Update frequency: every 27.2 days
  • Top authors: osynligstefan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /633 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.00ms] Passed 4 tests

This is a short check of server-side resources used by Osynlig Localization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.39 ▼2.96
Dashboard /wp-admin3.01 ▼0.3028.53 ▼23.77
Posts /wp-admin/edit.php3.01 ▼0.3529.50 ▼22.97
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.86 ▼72.99
Media Library /wp-admin/upload.php3.01 ▼0.2225.03 ▼12.25
Localization /wp-admin/options-general.php?page=localization3.0123.98

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Osynlig Localization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.371.78 ▼0.1640.94 ▼2.04
Dashboard /wp-admin2,196 ▲165.57 ▼0.07120.88 ▲34.2039.47 ▼2.68
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0040.53 ▼2.5238.14 ▲2.60
Add New Post /wp-admin/post-new.php1,531 ▲323.23 ▲0.19676.43 ▲37.2365.61 ▲16.14
Media Library /wp-admin/upload.php1,401 ▲44.15 ▼0.03104.34 ▲1.1844.31 ▼2.70
Localization /wp-admin/options-general.php?page=localization7791.9923.3027.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=localization
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/osynlig-localization/trunk/osynlig-localization.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/osynlig-localization/osynlig-localization.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 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
1 plugin tags: translation

osynlig-localization/osynlig-localization.php Passed 13 tests

The main PHP script in "Osynlig Localization" version 1.0.0 is automatically included on every request by WordPress
53 characters long description:
Makes it possible to choose locale for the front-end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1194574
PO File181233

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin