84% no-category-parents

Code Review | No category parents

WordPress plugin No category parents scored84%from 54 tests.

About plugin

  • Plugin page: no-category-parents
  • Plugin version: 0.2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2009
  • Latest release: Mar 9, 2015
  • Number of updates: 20
  • Update frequency: every 97.4 days
  • Top authors: milardovich (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /71,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.38ms] Passed 4 tests

Analyzing server-side resources used by No category parents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0657.00 ▲17.75
Dashboard /wp-admin3.36 ▲0.0152.06 ▼8.17
Posts /wp-admin/edit.php3.39 ▲0.0452.55 ▼0.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.82 ▼11.63
Media Library /wp-admin/upload.php3.29 ▲0.0644.98 ▲10.77

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

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

Browser metrics Passed 4 tests

Checking browser requirements for No category parents
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.181.83 ▲0.1244.78 ▲4.73
Dashboard /wp-admin2,198 ▲215.64 ▲0.0483.74 ▼7.2836.44 ▼8.78
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0533.51 ▼8.5134.21 ▼6.34
Add New Post /wp-admin/post-new.php1,538 ▲1223.03 ▼0.38652.62 ▼30.4953.67 ▼6.18
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.0995.43 ▼8.9544.99 ▲1.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/no-category-parents/no-category-parents.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: category, categories, seo, cms, links...

no-category-parents/no-category-parents.php Passed 13 tests

This is the main PHP file of "No category parents" version 0.2.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Removes category parents from your category permalinks. Now it also works for the posts permalinks, when using the /%category%/ permastruct.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1523198

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
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
PNG images were not found in this plugin