84% wall-by-mindspun

Code Review | Wall

WordPress plugin Wall scored84%from 54 tests.

About plugin

  • Plugin page: wall-by-mindspun
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2022
  • Latest release: Jul 28, 2022
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: mattlaue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.22ms] Passed 4 tests

An overview of server-side resources used by Wall
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.11 ▼1.21
Dashboard /wp-admin3.40 ▲0.1053.63 ▼0.62
Posts /wp-admin/edit.php3.51 ▲0.1649.33 ▼13.22
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.65 ▼1.82
Media Library /wp-admin/upload.php3.32 ▲0.0937.61 ▲3.72
Wall /wp-admin/options-general.php?page=mindspun-wall3.3036.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wall
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.361.98 ▲0.2544.24 ▼1.92
Dashboard /wp-admin2,202 ▲225.58 ▼0.0591.12 ▼1.9341.90 ▼2.48
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0435.93 ▼1.6434.27 ▼2.92
Add New Post /wp-admin/post-new.php1,557 ▲1218.15 ▼2.87595.84 ▼29.3059.05 ▲5.34
Media Library /wp-admin/upload.php1,404 ▲44.39 ▲0.0597.71 ▼12.2644.43 ▼2.40
Wall /wp-admin/options-general.php?page=mindspun-wall8442.0525.5427.03

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/LandingPageField.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mindspun\\wall\\get_option() in wp-content/plugins/wall-by-mindspun/src/Settings.php:49
    • > PHP Fatal error
      Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/EnabledField.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/wall-by-mindspun/templates/wall-landing-page.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/SecretField.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'mindspun\\wall\\admin\\Field' not found in wp-content/plugins/wall-by-mindspun/src/admin/fields/LoginRedirectField.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: private, visibility, login

wall-by-mindspun/wall.php 92% from 13 tests

This is the main PHP file of "Wall" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wall-by-mindspun.php" instead of "wall.php")

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
Good job! No executable or dangerous file extensions detected476 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13102350475
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.27
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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 files were detected