84% tagpages

Code Review | TagPages

WordPress plugin TagPages scored84%from 54 tests.

About plugin

  • Plugin page: tagpages
  • Plugin version: 1.64
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 31, 2010
  • Latest release: Nov 9, 2017
  • Number of updates: 33
  • Update frequency: every 80.6 days
  • Top authors: neoxx (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /45,542 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by TagPages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.07 ▲6.32
Dashboard /wp-admin3.33 ▲0.0348.95 ▼5.98
Posts /wp-admin/edit.php3.38 ▲0.0352.56 ▲2.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.55 ▼7.94
Media Library /wp-admin/upload.php3.25 ▲0.0336.05 ▼1.89
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2537.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TagPages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.38 ▲0.141.48 ▼0.4538.47 ▼4.85
Dashboard /wp-admin2,201 ▲215.62 ▲0.0492.55 ▼2.4942.06 ▼8.57
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0539.07 ▲1.9035.41 ▲2.09
Add New Post /wp-admin/post-new.php1,542 ▲1618.35 ▼5.25599.46 ▼84.1260.57 ▲4.94
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0698.17 ▼6.3342.67 ▼3.64
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3272.1229.1531.89

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tagpages/tagpages.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (This screenshot illustrates editing a page in the Admin Menu.), #2 (The second picture shows the Pages section in the Admin Menu.)
The official readme.txt is a good inspiration

tagpages/tagpages.php Passed 13 tests

The main PHP file in "TagPages" ver. 1.64 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Adds post-tags functionality for pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17414379
PO File26439

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png15.39KB7.69KB▼ 50.01%
screenshot-1.png46.24KB20.24KB▼ 56.23%