83% post-tags-and-archive

Code Review | Post Tags and Archives

WordPress plugin Post Tags and Archives scored83%from 54 tests.

About plugin

  • Plugin page: post-tags-and-arc...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-3.9
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Apr 16, 2014
  • Number of updates: 26
  • Update frequency: every 110.4 days
  • Top authors: oxpal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Post Tags and Archives
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.55 ▼8.58
Dashboard /wp-admin3.31 ▲0.0147.02 ▼2.99
Posts /wp-admin/edit.php3.36 ▲0.0152.54 ▲0.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.32 ▼7.76
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼2.05
Post Tags & Archives /wp-admin/options-general.php?page=post-tags-and-archive/post-tags-and-archives.php3.1831.78

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
pta-posttagsandarchives_options

Browser metrics Passed 4 tests

An overview of browser requirements for Post Tags and Archives
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▼0.051.77 ▲0.1244.01 ▼3.81
Dashboard /wp-admin2,199 ▲225.62 ▲0.0684.83 ▼10.8440.84 ▲4.10
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0242.83 ▲6.4536.72 ▼2.14
Add New Post /wp-admin/post-new.php1,538 ▼318.17 ▼4.86633.51 ▼47.5467.49 ▲16.07
Media Library /wp-admin/upload.php1,401 ▲14.18 ▲0.02100.08 ▼6.0645.06 ▼0.47
Post Tags & Archives /wp-admin/options-general.php?page=post-tags-and-archive/post-tags-and-archives.php9832.0522.4344.40

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=post-tags-and-archive/post-tags-and-archives.php
    • > Notice in wp-content/plugins/post-tags-and-archive/post-tags-and-archives.php+237
    Undefined index: pta-posttagsandarchives_submit

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #6 in post-tags-and-archive/assets to your readme.txt
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

post-tags-and-archive/post-tags-and-archives.php 85% from 13 tests

Analyzing the main PHP file in "Post Tags and Archives" version 1.1.1
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("post-tags-and-archive.php" instead of "post-tags-and-archives.php")

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 plugin295 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP169101295

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin