10% wikipedia-for-tag-pages

Code Review | Wikipedia for tag pages

WordPress plugin Wikipedia for tag pages scored10%from 54 tests.

About plugin

  • Plugin page: wikipedia-for-tag...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-3.6
  • WordPress version: 6.3.1
  • First release: Jul 19, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 14
  • Update frequency: every 2.7 days
  • Top authors: Haldaug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,493 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wikipedia-for-tag-pages/wiki-tags.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; tagWiki has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼47.45ms] Passed 4 tests

This is a short check of server-side resources used by Wikipedia for tag pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.72 ▼31.46
Dashboard /wp-admin2.29 ▼1.0113.82 ▼39.48
Posts /wp-admin/edit.php2.29 ▼1.0610.55 ▼36.37
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.42 ▼82.50
Media Library /wp-admin/upload.php2.29 ▼0.9411.63 ▼26.78

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_tag-wiki
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Wikipedia for tag pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3013.91 ▼0.251.71 ▲0.0836.98 ▼6.49
Dashboard /wp-admin2,198 ▲215.57 ▲0.0387.23 ▼3.8936.64 ▼0.32
Posts /wp-admin/edit.php2,097 ▼62.00 ▲0.0635.16 ▼2.1732.40 ▼1.38
Add New Post /wp-admin/post-new.php1,529 ▲323.78 ▲0.55594.79 ▼13.0950.00 ▼12.53
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0999.37 ▼14.3341.79 ▼3.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in tagWiki is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_tag-wiki
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wikipedia-for-tag-pages/wiki-tags.php:12

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

wikipedia-for-tag-pages/wiki-tags.php 92% from 13 tests

The main PHP file in "Wikipedia for tag pages" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wikipedia-for-tag-pages.php" instead of "wiki-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21723110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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 functions4100.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
There are no PNG files in this plugin