83% norse-runes-oracle

Code Review | Norse Rune Oracle Plugin

WordPress plugin Norse Rune Oracle Plugin scored83%from 54 tests.

About plugin

  • Plugin page: norse-runes-oracle
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2013
  • Latest release: Feb 3, 2020
  • Number of updates: 15
  • Update frequency: every 170.5 days
  • Top authors: BilliardGreg (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲2.54ms] Passed 4 tests

This is a short check of server-side resources used by Norse Rune Oracle Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1545.00 ▲7.27
Dashboard /wp-admin3.45 ▲0.1449.65 ▼2.57
Posts /wp-admin/edit.php3.54 ▲0.1952.79 ▲4.95
Add New Post /wp-admin/post-new.php6.02 ▲0.1487.88 ▲0.92
Media Library /wp-admin/upload.php3.37 ▲0.1439.53 ▲6.85
Norse Runes Oracle Instructions/Setup /wp-admin/tools.php?page=runes-submenu-page3.3437.88

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 32 new options
New WordPress options
norserune_runecount_10
norserune_runecount_7
norserune_runecount_2
db_upgraded
widget_theysaidso_widget
norserune_runecount_13
norserune_runecount_22
norserune_runecount_19
widget_recent-comments
norserune_runecount_21
...

Browser metrics Passed 4 tests

Norse Rune Oracle Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.29 ▼1.181.56 ▼0.1341.81 ▲3.89
Dashboard /wp-admin2,213 ▲215.79 ▲0.8394.88 ▼11.8037.81 ▼1.94
Posts /wp-admin/edit.php2,090 ▲11.99 ▲0.0233.33 ▼1.0836.73 ▲1.16
Add New Post /wp-admin/post-new.php1,545 ▲1718.22 ▼5.05644.42 ▼65.8557.06 ▲6.04
Media Library /wp-admin/upload.php1,395 ▲134.28 ▲0.0595.33 ▼3.6943.11 ▲1.48
Norse Runes Oracle Instructions/Setup /wp-admin/tools.php?page=runes-submenu-page1,2142.0526.8360.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 32 options
    • norserune_runecount_10
    • norserune_runecount_9
    • norserune_runecount_22
    • norserune_runecount_4
    • widget_recent-posts
    • norserune_runecount_14
    • norserune_runecount_2
    • norserune_runecount_1
    • norserune_runecount_23
    • norserune_runecount_18
    • ...

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/norse-runes-oracle/NorseRunes.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function runes_header() in wp-content/plugins/norse-runes-oracle/NorseRunesAdmin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'runes' not found in wp-content/plugins/norse-runes-oracle/runes.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

norse-runes-oracle/NorseRunes.php 85% from 13 tests

"Norse Rune Oracle Plugin" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("norse-runes-oracle.php" instead of "NorseRunes.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 308 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected527 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP417535414
CSS11181
XML20032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.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
1 PNG file occupies 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png375.72KB116.32KB▼ 69.04%