10% wiki-on-medal

Code Review | Wiki on Medal

WordPress plugin Wiki on Medal scored10%from 54 tests.

About plugin

  • Plugin page: wiki-on-medal
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Sep 19, 2015
  • Number of updates: 25
  • Update frequency: every 11.7 days
  • Top authors: Piotr Pesta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /971 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wiki-on-medal/wiki-medal.php+97
    Function create_function() is deprecated

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

This is a short check of server-side resources used by Wiki on Medal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.14 ▼37.10
Dashboard /wp-admin2.05 ▼1.306.62 ▼59.80
Posts /wp-admin/edit.php2.05 ▼1.316.62 ▼42.46
Add New Post /wp-admin/post-new.php2.05 ▼3.844.82 ▼95.42
Media Library /wp-admin/upload.php2.05 ▼1.185.52 ▼35.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_wiki_na_5
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wiki on Medal
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.20 ▼0.151.99 ▲0.2840.11 ▼4.25
Dashboard /wp-admin2,195 ▲155.63 ▼0.0293.70 ▼3.8041.37 ▼2.58
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0839.02 ▲3.5535.37 ▼3.34
Add New Post /wp-admin/post-new.php1,528 ▼023.09 ▲0.04645.86 ▲2.2848.14 ▼11.08
Media Library /wp-admin/upload.php1,397 ▼64.13 ▼0.02105.05 ▲3.3242.42 ▼5.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Deprecated in wp-content/plugins/wiki-on-medal/wiki-medal.php+97
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_wiki_na_5
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wiki-on-medal/wiki-medal.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wikipedia widget, article on medal, featured article, widget, wikipedia

wiki-on-medal/wiki-medal.php 92% from 13 tests

"Wiki on Medal" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wiki-on-medal.php" instead of "wiki-medal.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
No dangerous file extensions were detected111 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32817106
CSS1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.50
▷ Minimum class complexity6.00
▷ Maximum class complexity7.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin