83% predikarens-bibelreferenser

Code Review | Predikarens bibelreferenser

WordPress plugin Predikarens bibelreferenser scored83%from 54 tests.

About plugin

  • Plugin page: predikarens-bibel...
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Oct 11, 2020
  • Number of updates: 8
  • Update frequency: every 19.8 days
  • Top authors: magnuskgd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.69ms] Passed 4 tests

Server-side resources used by Predikarens bibelreferenser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.41 ▼7.52
Dashboard /wp-admin3.31 ▲0.0152.16 ▼1.24
Posts /wp-admin/edit.php3.36 ▲0.0049.99 ▲4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.01 ▲2.15
Media Library /wp-admin/upload.php3.23 ▲0.0038.72 ▲3.87

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Predikarens bibelreferenser
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.86 ▼0.7312.26 ▲10.2040.45 ▼3.75
Dashboard /wp-admin2,203 ▲154.86 ▼0.04110.64 ▼6.0641.57 ▼1.54
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0139.40 ▲4.6636.72 ▲1.27
Add New Post /wp-admin/post-new.php1,542 ▲2818.69 ▲1.18624.74 ▼168.5953.01 ▼13.15
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0393.89 ▼7.4645.36 ▲1.49

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/predikarens-bibelreferenser/includes/predikaren_scripts.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: No valid plugin tags found
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

predikarens-bibelreferenser/predikaren.php 92% from 13 tests

"Predikarens bibelreferenser" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("predikarens-bibelreferenser.php" instead of "predikaren.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,393 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211261,368
PHP2122325

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.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin