84% polylang-category-creator

Code Review | Polylang Category Creator

WordPress plugin Polylang Category Creator scored84%from 54 tests.

About plugin

  • Plugin page: polylang-category...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: Dec 6, 2017
  • Number of updates: 17
  • Update frequency: every 23.8 days
  • Top authors: Merksk8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.63ms] Passed 4 tests

A check of server-side resources used by Polylang Category Creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.44 ▲2.42
Dashboard /wp-admin3.36 ▲0.0649.87 ▼2.84
Posts /wp-admin/edit.php3.41 ▲0.0647.27 ▲2.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.59 ▼12.36
Media Library /wp-admin/upload.php3.28 ▲0.0538.44 ▲3.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Polylang Category Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.63 ▲0.251.85 ▲0.1642.14 ▲0.18
Dashboard /wp-admin2,222 ▲345.87 ▼0.18109.10 ▼1.6939.00 ▼4.27
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0136.25 ▼1.0735.02 ▲0.81
Add New Post /wp-admin/post-new.php1,546 ▼123.07 ▲4.92661.84 ▼7.9951.82 ▼6.08
Media Library /wp-admin/upload.php1,401 ▲104.30 ▲0.0898.59 ▼7.1242.02 ▼1.45

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/polylang-category-creator/admin/admin-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: taxonomy, woocommerce, custom, bulk, polylang...

polylang-category-creator/Polylang Category Creator.php 92% from 13 tests

Analyzing the main PHP file in "Polylang Category Creator" version 1.5
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("polylang-category-creator.php" instead of "Polylang Category Creator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin580 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File4104118324
PHP26544256

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.31KB16.00KB▼ 41.40%