84% front-end-categories

Code Review | Front-end Categories

WordPress plugin Front-end Categories scored84%from 54 tests.

About plugin

  • Plugin page: front-end-categories
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.2
  • WordPress version: 6.3.1
  • First release: Jan 16, 2013
  • Latest release: Aug 20, 2014
  • Number of updates: 9
  • Update frequency: every 64.6 days
  • Top authors: voltronik (55.56%)jackmcconnell (55.56%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,669 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
Install script ran successfully

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

Analyzing server-side resources used by Front-end Categories
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.02 ▲0.62
Dashboard /wp-admin3.31 ▲0.0143.82 ▼16.33
Posts /wp-admin/edit.php3.36 ▲0.0142.61 ▼4.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.69 ▼4.19
Media Library /wp-admin/upload.php3.24 ▲0.0136.29 ▲2.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Front-end Categories: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.66 ▼0.0641.33 ▼1.41
Dashboard /wp-admin2,206 ▲184.88 ▼0.1595.81 ▼7.2336.88 ▼2.63
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0136.92 ▼2.9831.79 ▼5.79
Add New Post /wp-admin/post-new.php1,533 ▼922.98 ▲4.89672.33 ▲59.1253.28 ▼2.27
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.03111.35 ▲13.7446.01 ▼0.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/front-end-categories/front-end-categories.php:145

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: categories, sub-categories, frontend

front-end-categories/front-end-categories.php Passed 13 tests

This is the main PHP file of "Front-end Categories" version 0.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
A WordPress plugin to add creation of categories and sub-categories to the front-end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14126164

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin