84% entries-by-terms-count

Code Review | Entries By Terms Count

WordPress plugin Entries By Terms Count scored84%from 54 tests.

About plugin

  • Plugin page: entries-by-terms-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 10
  • Update frequency: every 13.9 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Entries By Terms Count
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.85 ▼5.00
Dashboard /wp-admin3.35 ▲0.0450.14 ▼2.58
Posts /wp-admin/edit.php3.40 ▲0.0453.44 ▲1.84
Add New Post /wp-admin/post-new.php5.93 ▲0.04103.89 ▲10.96
Media Library /wp-admin/upload.php3.27 ▲0.0438.78 ▲0.34
Entries By Terms Count /wp-admin/tools.php?page=entries-by-terms-count3.2234.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Entries By Terms Count: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.19 ▼0.202.03 ▲0.2841.97 ▼2.33
Dashboard /wp-admin2,202 ▲255.66 ▲0.1493.69 ▼15.5040.96 ▼2.13
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0334.39 ▼2.1932.98 ▼2.01
Add New Post /wp-admin/post-new.php1,529 ▲123.87 ▲0.85639.47 ▼62.0249.89 ▼5.26
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0795.71 ▼10.7244.70 ▼1.23
Entries By Terms Count /wp-admin/tools.php?page=entries-by-terms-count9181.9925.4226.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=entries-by-terms-count
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=entries-by-terms-count
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

entries-by-terms-count/entries-by-terms-count.php Passed 13 tests

Analyzing the main PHP file in "Entries By Terms Count" version 1.0
128 characters long description:
Content curation tool to search entries based on the number of terms: display posts without tags, with too many categories, etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110670159
PO File1212162

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity8.83
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin