74% simplify-post-taxonomy

Code Review | Plugin Name: Simplify Post Taxonomy

WordPress plugin Plugin Name: Simplify Post Taxonomy scored74%from 54 tests.

About plugin

  • Plugin page: simplify-post-tax...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2013
  • Latest release: Oct 17, 2014
  • Number of updates: 3
  • Update frequency: every 130.0 days
  • Top authors: souravmondal10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,154 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Plugin Name: Simplify Post Taxonomy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.57 ▼0.20
Dashboard /wp-admin3.32 ▲0.0252.37 ▼0.80
Posts /wp-admin/edit.php3.37 ▲0.0253.64 ▲5.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.68 ▼7.06
Media Library /wp-admin/upload.php3.25 ▲0.0241.53 ▲1.70

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 6 new options
New tables
wp_custom_post_types
wp_custom_taxonomy_types
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Name: Simplify Post Taxonomy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.64 ▲0.421.71 ▼0.2048.00 ▲5.37
Dashboard /wp-admin2,198 ▲215.68 ▲0.0181.36 ▼6.9072.29 ▲26.04
Posts /wp-admin/edit.php2,121 ▲212.01 ▼0.0137.88 ▲1.1540.94 ▲3.45
Add New Post /wp-admin/post-new.php1,693 ▲15022.42 ▼0.85695.28 ▲8.0641.62 ▼9.38
Media Library /wp-admin/upload.php1,412 ▲94.25 ▲0.14103.79 ▼0.9868.46 ▲17.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_custom_post_types
    • wp_custom_taxonomy_types
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/simplify-post-taxonomy/admin-interface-custompost.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplify-post-taxonomy/executes-posts-taxonomy.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simplify-post-taxonomy/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: Simplify Post Taxonomy === )
The official readme.txt is a good inspiration

simplify-post-taxonomy/index.php 92% from 13 tests

The primary PHP file in "Plugin Name: Simplify Post Taxonomy" version 2.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simplify-post-taxonomy.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin367 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32233298
CSS12741
JavaScript13728

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.88KB0.81KB▼ 7.44%