84% tag-pages

Code Review | Tag Pages

WordPress plugin Tag Pages scored 84% from 54 tests.

About plugin

  • Plugin page: tag-pages
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jul 18, 2012
  • Latest release: Jun 24, 2022
  • Number of updates: 19
  • Update frequency: every 191.4 days
  • Top authors: BjornW (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

20,000+ active / 113,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Tag Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.23 ▼5.00
Dashboard /wp-admin3.31 ▲0.0151.11 ▼0.53
Posts /wp-admin/edit.php3.36 ▲0.0151.42 ▲0.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.76 ▲0.06
Media Library /wp-admin/upload.php3.23 ▲0.0141.07 ▲7.30
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2336.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Tag Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.24 ▼1.541.58 ▼0.1638.81 ▼10.43
Dashboard /wp-admin2,213 ▲104.87 ▼0.94106.53 ▲3.8842.05 ▼0.69
Posts /wp-admin/edit.php2,096 ▲41.97 ▼0.0835.98 ▼7.8435.04 ▼3.19
Add New Post /wp-admin/post-new.php1,536 ▲223.43 ▲0.47679.07 ▲73.8253.01 ▲2.79
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0295.64 ▼2.3941.95 ▼1.78
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3112.1326.0531.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-pages/tag-pages.php:42

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (A screenshot of the (older) WordPress backend Pages section with the Tags metabox marked red.), #2 (A screenshot of the WordPress backend Pages section using the Gutenberg block editor with the Tags (document properties) marked red)
The official readme.txt is a good inspiration

tag-pages/tag-pages.php Passed 13 tests

The principal PHP file in "Tag Pages" v. 1.0.2 is loaded by WordPress automatically on each request
50 characters long description:
Add tags to Pages, just as you would do with Posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin27 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP163519
Markdown1608

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png133.43KB52.90KB▼ 60.35%
screenshot-2.png72.26KB29.09KB▼ 59.74%