84% eshop-languages

Code Review | eShop Languages

WordPress plugin eShop Languages scored84%from 54 tests.

About plugin

  • Plugin page: eshop-languages
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.7
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Nov 4, 2013
  • Number of updates: 10
  • Update frequency: every 21.1 days
  • Top authors: RavanH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /10,916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by eShop Languages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.27 ▲1.96
Dashboard /wp-admin3.31 ▼0.0445.10 ▼17.69
Posts /wp-admin/edit.php3.36 ▲0.0054.94 ▲9.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.26 ▼8.03
Media Library /wp-admin/upload.php3.23 ▲0.0033.35 ▲1.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

eShop Languages: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.82 ▲0.2748.75 ▲9.08
Dashboard /wp-admin2,195 ▲155.57 ▼0.0481.72 ▼6.6840.63 ▼0.41
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0035.95 ▼2.4733.89 ▼7.35
Add New Post /wp-admin/post-new.php1,526 ▼023.52 ▲0.41693.97 ▲27.5649.41 ▼4.94
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.03103.90 ▼3.8145.41 ▼5.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/eshop-languages/plugin.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: language, translation, eshop

eshop-languages/plugin.php 85% from 13 tests

This is the main PHP file of "eShop Languages" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eshop-languages.php" instead of "plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin24,773 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File1011,30517,03624,767
PHP17206

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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 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
No PNG files were detected