94% no-category-base-wpml

Code Review | No Category Base (WPML)

WordPress plugin No Category Base (WPML) scored 94% from 54 tests.

About plugin

  • Plugin page: no-category-base-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Dec 2, 2011
  • Latest release: Sep 19, 2021
  • Number of updates: 30
  • Update frequency: every 119.3 days
  • Top authors: Marios Alexandrou (66.67%)mines.io (36.67%)

Code review

54 tests

User reviews

29 reviews

Install metrics

100,000+ active / 555,015 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by No Category Base (WPML)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.20 ▲10.64
Dashboard /wp-admin3.08 ▲0.0248.16 ▲3.51
Posts /wp-admin/edit.php3.13 ▲0.0345.98 ▼1.81
Add New Post /wp-admin/post-new.php5.44 ▲0.0094.51 ▼563.01
Media Library /wp-admin/upload.php3.02 ▲0.0233.31 ▼1.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for No Category Base (WPML)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.86 ▲0.377.90 ▼1.5547.68 ▼7.92
Dashboard /wp-admin2,970 ▲375.89 ▼0.06145.25 ▼18.86112.02 ▼0.07
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0184.48 ▲16.4795.18 ▲0.87
Add New Post /wp-admin/post-new.php1,498 ▼218.78 ▲0.28377.63 ▲0.32111.82 ▼4.46
Media Library /wp-admin/upload.php1,807 ▲35.04 ▲0.02160.30 ▲11.09130.42 ▲9.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/no-category-base-wpml/no-category-base-wpml.php:36

User-side errors Passed 1 test

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

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
8 plugin tags: category parents, wpml, url structure, category slug, category...

no-category-base-wpml/no-category-base-wpml.php Passed 13 tests

Analyzing the main PHP file in "No Category Base (WPML)" version 1.3
67 characters long description:
Removes '/category' from your category permalinks. WPML compatible.

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
No dangerous file extensions were detected71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2235471

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin