83% opal-estate-custom-fields

Code Review | Opal Estate Custom Fields

WordPress plugin Opal Estate Custom Fields scored 83% from 54 tests.

About plugin

  • Plugin page: opal-estate-custo...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: Oct 12, 2020
  • Number of updates: 10
  • Update frequency: every 35.0 days
  • Top authors: wpopal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,688 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Opal Estate Custom Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.42 ▼0.45
Dashboard /wp-admin3.31 ▲0.0144.47 ▼4.90
Posts /wp-admin/edit.php3.36 ▲0.0049.52 ▲1.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.22 ▼8.43
Media Library /wp-admin/upload.php3.23 ▲0.0033.69 ▼1.10

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Opal Estate Custom Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.21 ▼1.151.74 ▲0.1144.09 ▲0.09
Dashboard /wp-admin2,216 ▲255.79 ▲0.9099.42 ▼2.2137.32 ▼6.32
Posts /wp-admin/edit.php2,098 ▲92.01 ▲0.0139.45 ▼1.3735.84 ▲1.34
Add New Post /wp-admin/post-new.php1,543 ▲1023.20 ▼0.03647.89 ▲28.3953.23 ▼2.08
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.0594.14 ▼8.8945.00 ▲2.50

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/opal-estate-custom-fields/loader.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
Please fix the following attributes: Please take inspiration from this readme.txt

opal-estate-custom-fields/opal-estate-custom-fields.php 77% from 13 tests

The primary PHP file in "Opal Estate Custom Fields" version 1.0.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "4.9")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,172 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP183044071,434
CSS4265468
JavaScript37621250
SVG10019
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.27
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods68
▷ Static methods45.88%
▷ Public methods5885.29%
▷ Protected methods913.24%
▷ Private methods11.47%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin