10% wikipedia-anniversaries

Code Review | Wikipedia Anniversaries

WordPress plugin Wikipedia Anniversaries scored10%from 54 tests.

About plugin

  • Plugin page: wikipedia-anniver...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Sep 17, 2015
  • Number of updates: 21
  • Update frequency: every 13.7 days
  • Top authors: Piotr Pesta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,334 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wikipedia-anniversaries/wiki-kalendarium.php+153
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼58.06ms] Passed 4 tests

An overview of server-side resources used by Wikipedia Anniversaries
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.01 ▼38.87
Dashboard /wp-admin2.05 ▼1.305.85 ▼58.75
Posts /wp-admin/edit.php2.05 ▼1.315.85 ▼42.63
Add New Post /wp-admin/post-new.php2.05 ▼3.844.89 ▼91.98
Media Library /wp-admin/upload.php2.05 ▼1.185.50 ▼32.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_wiki_this_day

Browser metrics Passed 4 tests

A check of browser resources used by Wikipedia Anniversaries
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.24 ▼0.031.94 ▼0.1642.18 ▼2.97
Dashboard /wp-admin2,195 ▲155.65 ▲0.0287.44 ▼11.5339.30 ▼3.07
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0435.85 ▼5.6034.53 ▼3.25
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.05613.76 ▼40.4952.80 ▼3.29
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.01104.43 ▼1.2444.83 ▼0.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wikipedia-anniversaries/wiki-kalendarium.php+153
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_wiki_this_day
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wikipedia-anniversaries/wiki-kalendarium.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: widget, wikipedia anniversaries, calendar, anniversaries, wikipedia...

wikipedia-anniversaries/wiki-kalendarium.php 92% from 13 tests

The entry point to "Wikipedia Anniversaries" version 1.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wikipedia-anniversaries.php" instead of "wiki-kalendarium.php")

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 detected168 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32717163
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 were not PNG files found in your plugin