84% posts-by-tags

Code Review | Posts By Tags

WordPress plugin Posts By Tags scored84%from 54 tests.

About plugin

  • Plugin page: posts-by-tags
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.4.1
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: May 6, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: iqlasit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.61ms] Passed 4 tests

A check of server-side resources used by Posts By Tags
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.09 ▼8.18
Dashboard /wp-admin3.34 ▲0.0352.28 ▼2.58
Posts /wp-admin/edit.php3.39 ▲0.0353.71 ▲2.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.62 ▼25.03
Media Library /wp-admin/upload.php3.26 ▲0.0337.06 ▼2.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_iqlasit_posts_by_tags
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Posts By Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.93 ▼0.448.73 ▲6.8343.50 ▲2.30
Dashboard /wp-admin2,195 ▲155.64 ▼0.0594.66 ▲5.4242.30 ▼0.11
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0040.28 ▲4.9134.77 ▼6.54
Add New Post /wp-admin/post-new.php1,545 ▲1423.18 ▲0.11760.22 ▲70.2559.52 ▼3.13
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.06112.47 ▼3.0248.07 ▼0.88

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_iqlasit_posts_by_tags
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/posts-by-tags/posts-by-tags.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-by-tags/widget-file.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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: tags, posts-by-tags, posts-based-tags

posts-by-tags/posts-by-tags.php 92% from 13 tests

This is the main PHP file of "Posts By Tags" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin194 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22826117
JavaScript18258
CSS13019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin