84% custom-base-terms

Code Review | Custom Base Terms

WordPress plugin Custom Base Terms scored84%from 54 tests.

About plugin

  • Plugin page: custom-base-terms
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2013
  • Latest release: May 10, 2023
  • Number of updates: 50
  • Update frequency: every 71.8 days
  • Top authors: artprojectgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Custom Base Terms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.53 ▲2.47
Dashboard /wp-admin3.35 ▲0.0452.73 ▲1.10
Posts /wp-admin/edit.php3.40 ▲0.0448.60 ▲0.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.08 ▼7.87
Media Library /wp-admin/upload.php3.27 ▲0.0443.10 ▲7.79

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Custom Base Terms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.47 ▲0.132.01 ▲0.3346.10 ▲6.17
Dashboard /wp-admin2,208 ▲235.77 ▼0.09111.79 ▲10.2745.18 ▲2.22
Posts /wp-admin/edit.php2,091 ▲202.06 ▲0.0234.53 ▼1.7936.96 ▲2.05
Add New Post /wp-admin/post-new.php1,516 ▲223.08 ▲5.63662.11 ▲57.8657.75 ▼5.33
Media Library /wp-admin/upload.php1,390 ▲24.17 ▼0.01102.78 ▲5.0147.10 ▲3.04

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-base-terms/includes/cuadro-informacion.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: author, permalinks, sep, comments, page...

custom-base-terms/custom-base.php 85% from 13 tests

The main PHP script in "Custom Base Terms" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 329 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-base-terms.php" instead of "custom-base.php")

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
Good job! No executable or dangerous file extensions detected1,264 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS21022660
SVG200270
PHP33230210
Markdown1520124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin