84% language-taxonomy

Code Review | Language Taxonomy

WordPress plugin Language Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: language-taxonomy
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2010
  • Latest release: Aug 8, 2015
  • Number of updates: 13
  • Update frequency: every 144.2 days
  • Top authors: dominik.schwind (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.12ms] Passed 4 tests

Server-side resources used by Language Taxonomy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.67 ▼1.65
Dashboard /wp-admin3.33 ▲0.0247.84 ▼3.79
Posts /wp-admin/edit.php3.38 ▲0.0247.85 ▼1.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.63 ▲3.19
Media Library /wp-admin/upload.php3.25 ▲0.0232.92 ▼1.38
Languages /wp-admin/edit-tags.php?taxonomy=language3.2435.08
Languages /wp-admin/edit-tags.php?taxonomy=language&post_type=page3.2433.28

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Language Taxonomy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.22 ▼1.081.84 ▲0.0743.11 ▼0.52
Dashboard /wp-admin2,217 ▲324.83 ▼1.0798.75 ▼4.6037.72 ▼2.54
Posts /wp-admin/edit.php2,129 ▲372.00 ▲0.0240.34 ▲3.3935.28 ▲3.33
Add New Post /wp-admin/post-new.php1,525 ▲1123.07 ▲5.58597.22 ▼49.8755.25 ▲0.99
Media Library /wp-admin/upload.php1,399 ▲114.28 ▲0.0395.39 ▼8.3741.71 ▼5.96
Languages /wp-admin/edit-tags.php?taxonomy=language1,2392.1327.6429.29
Languages /wp-admin/edit-tags.php?taxonomy=language&post_type=page1,2422.1327.0329.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/language-taxonomy/language-taxonomy.php:43

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: language, taxonomy

language-taxonomy/language-taxonomy.php Passed 13 tests

The main PHP script in "Language Taxonomy" version 0.2.3 is automatically included on every request by WordPress
57 characters long description:
Adds a language taxonomy to posts, pages and other items.

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
There were no executable files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16935

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin