84% simple-wall

Code Review | Simple Wall

WordPress plugin Simple Wall scored84%from 54 tests.

About plugin

  • Plugin page: simple-wall
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 14, 2022
  • Latest release: Aug 7, 2023
  • Number of updates: 72
  • Update frequency: every 7.9 days
  • Top authors: sebastienserre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,047 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.69ms] Passed 4 tests

A check of server-side resources used by Simple Wall
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.76 ▼5.20
Dashboard /wp-admin3.32 ▲0.0145.93 ▼4.18
Posts /wp-admin/edit.php3.37 ▲0.0150.53 ▲4.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.24 ▼9.86
Media Library /wp-admin/upload.php3.24 ▲0.0143.40 ▲6.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Wall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.391.87 ▲0.2342.05 ▼4.46
Dashboard /wp-admin2,192 ▲155.63 ▲0.0492.09 ▲2.1338.75 ▼7.19
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0241.13 ▲5.0834.62 ▼2.84
Add New Post /wp-admin/post-new.php6,364 ▲4,83927.55 ▲4.51872.95 ▲250.8865.65 ▲19.42
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0299.39 ▲1.4042.49 ▲0.27

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimpleWall\\add_action() in wp-content/plugins/simple-wall/simple-wall.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wall/inc/blocks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimpleWall\\Shortcodes\\add_shortcode() in wp-content/plugins/simple-wall/inc/class_shortcodes.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: timeline, facebook, wall, shortcode, social network

simple-wall/simple-wall.php 92% from 13 tests

The main file in "Simple Wall" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "5.3")

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
Everything looks great! No dangerous files found in this plugin17,582 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON30016,059
PHP523821,251
JavaScript449116264
CSS1144
Sass1004

PHP code Passed 2 tests

An short overview of 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.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected