84% prelude-version

Code Review | Prelude Version

WordPress plugin Prelude Version scored84%from 54 tests.

About plugin

  • Plugin page: prelude-version
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.5
  • WordPress version: 6.3.1
  • First release: Dec 24, 2015
  • Latest release: Apr 13, 2016
  • Number of updates: 13
  • Update frequency: every 8.6 days
  • Top authors: PreludeProd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.34ms] Passed 4 tests

Analyzing server-side resources used by Prelude Version
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.90 ▼15.10
Dashboard /wp-admin3.35 ▲0.0454.62 ▲5.65
Posts /wp-admin/edit.php3.38 ▲0.0256.37 ▲2.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.65 ▼6.45
Media Library /wp-admin/upload.php3.27 ▲0.0444.27 ▲8.50
Prelude Version Options /wp-admin/options-general.php?page=prelude-version/prelude_version.php3.2438.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
prelude_version_plugin_options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Prelude Version
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.341.88 ▲0.0442.75 ▼3.51
Dashboard /wp-admin2,222 ▲165.94 ▲0.8397.49 ▼13.9840.05 ▼3.19
Posts /wp-admin/edit.php2,104 ▲12.04 ▼0.1040.05 ▲5.2834.97 ▲0.21
Add New Post /wp-admin/post-new.php1,548 ▼623.20 ▲4.68670.25 ▲32.0872.12 ▲22.86
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.0499.90 ▲2.0447.33 ▲1.76
Prelude Version Options /wp-admin/options-general.php?page=prelude-version/prelude_version.php8132.0226.5727.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • prelude_version_plugin_options

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)
Even though no errors were found, 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/prelude-version/prelude_version.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

prelude-version/prelude_version.php 92% from 13 tests

The main PHP script in "Prelude Version" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("prelude-version.php" instead of "prelude_version.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 plugin237 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14743139
PO File2242498

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin