84% taxman

Code Review | Taxman

WordPress plugin Taxman scored84%from 54 tests.

About plugin

  • Plugin page: taxman
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9.1
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: May 17, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ryanve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 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
Install script ran successfully

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

Server-side resources used by Taxman
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.63 ▼8.19
Dashboard /wp-admin3.32 ▲0.0150.07 ▲4.00
Posts /wp-admin/edit.php3.37 ▲0.0144.69 ▼1.74
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.39 ▼11.70
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▲2.87
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2336.68
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment3.2534.64
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2431.20
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment3.2432.32

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Taxman
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.59 ▼0.991.82 ▲0.1041.23 ▼3.96
Dashboard /wp-admin2,222 ▲344.82 ▼0.06101.98 ▼1.2038.73 ▼3.74
Posts /wp-admin/edit.php2,108 ▲162.03 ▼0.0236.46 ▼3.5331.49 ▼3.60
Add New Post /wp-admin/post-new.php1,545 ▲823.17 ▲0.07627.48 ▲20.7656.32 ▲1.08
Media Library /wp-admin/upload.php1,407 ▲164.23 ▲0.02103.53 ▲6.2444.91 ▲2.85
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4622.1425.5533.58
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment1,4592.1435.2234.97
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3232.2526.9533.41
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment1,3232.1425.4229.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • category_children
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taxman/taxman.php:12

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === taxman === )
Please take inspiration from this readme.txt

taxman/taxman.php Passed 13 tests

"Taxman" version 0.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add existing taxonomies all post types.

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 plugin20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP121211
Markdown1509

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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 functions00.00%
▷ Anonymous functions1100.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
No PNG images were found in this plugin