78% wallnament

Code Review | Wallnament

WordPress plugin Wallnament scored 78% from 54 tests.

About plugin

  • Plugin page: wallnament
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Oct 22, 2021
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: glimpsar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.43ms] Passed 4 tests

Analyzing server-side resources used by Wallnament
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.75 ▼1.46
Dashboard /wp-admin3.35 ▲0.0561.26 ▲6.09
Posts /wp-admin/edit.php3.40 ▲0.0554.60 ▼2.69
Add New Post /wp-admin/post-new.php5.95 ▲0.07102.65 ▼0.24
Media Library /wp-admin/upload.php3.27 ▲0.0546.28 ▲10.88

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wallnament
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲13814.14 ▲0.985.25 ▲3.1041.23 ▼8.24
Dashboard /wp-admin2,244 ▲385.21 ▼0.70123.98 ▲10.7543.02 ▲0.43
Posts /wp-admin/edit.php2,130 ▲412.30 ▲0.2937.84 ▲0.9333.51 ▲1.72
Add New Post /wp-admin/post-new.php1,535 ▲13823.20 ▲5.35679.53 ▼47.1559.71 ▲12.06
Media Library /wp-admin/upload.php1,432 ▲444.33 ▲0.16101.05 ▲0.6242.09 ▲1.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wallnament/public/partials/widget-header-script.php
    • > /wp-content/plugins/wallnament/admin/partials/wallnament-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/wallnament/admin/partials/checkbox-walker.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

wallnament/wallnament.php Passed 13 tests

The main PHP script in "Wallnament" version 1.0.0 is automatically included on every request by WordPress
50 characters long description:
Wallnament plugin for integration with WooCommerce

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
There were no executable files found in this plugin733 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14203527707
CSS33018
JavaScript33288

PHP code Passed 2 tests

An overview 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.23
Average class complexity6.22
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3784.09%
▷ Protected methods00.00%
▷ Private methods715.91%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin