84% mw-taxonomy

Code Review | MW Taxonomy

WordPress plugin MW Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: mw-taxonomy
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2016
  • Latest release: Mar 14, 2023
  • Number of updates: 21
  • Update frequency: every 120.2 days
  • Top authors: matswes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.05ms] Passed 4 tests

A check of server-side resources used by MW Taxonomy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.83 ▲1.99
Dashboard /wp-admin3.44 ▲0.1448.81 ▼4.17
Posts /wp-admin/edit.php3.56 ▲0.2053.33 ▲5.60
Add New Post /wp-admin/post-new.php6.02 ▲0.1494.62 ▼1.31
Media Library /wp-admin/upload.php3.36 ▲0.1436.28 ▼0.71

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MW Taxonomy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9413.70 ▼0.681.98 ▼0.0744.38 ▼5.41
Dashboard /wp-admin2,239 ▲364.85 ▼0.05103.90 ▼16.3341.01 ▼2.99
Posts /wp-admin/edit.php2,115 ▲152.01 ▼0.0042.73 ▲6.5436.50 ▼0.66
Add New Post /wp-admin/post-new.php1,567 ▲4118.17 ▲0.49611.90 ▼75.0149.97 ▼0.40
Media Library /wp-admin/upload.php1,415 ▲184.24 ▼0.0496.30 ▼5.7544.85 ▲0.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_custom_tax
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mw-taxonomy/includes/model/class-mw-taxonomy-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/mw-taxonomy/includes/model/class-mw-taxonomy-list-table.php:2

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: custom taxonomy, custom taxonomies, taxonomy, taxonomies

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

"MW Taxonomy" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Makes it possible to add any custom taxonomy to your wp website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,321 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP112172331,114
PO File18397207

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.78
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.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 images were found in this plugin