78% minitek-wall

Code Review | Minitek Wall

WordPress plugin Minitek Wall scored78%from 54 tests.

About plugin

  • Plugin page: minitek-wall
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jan 9, 2017
  • Latest release: Jul 6, 2022
  • Number of updates: 23
  • Update frequency: every 86.9 days
  • Top authors: minitekgr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,452 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
Installer ran successfully

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

Analyzing server-side resources used by Minitek Wall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.75 ▼0.01
Dashboard /wp-admin3.36 ▲0.0146.54 ▼10.35
Posts /wp-admin/edit.php3.41 ▲0.0549.45 ▲1.71
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.09 ▼19.00
Media Library /wp-admin/upload.php3.28 ▲0.0535.45 ▲1.64
Dashboard /wp-admin/edit.php?post_type=mwall&page=minitek-wall-dashboard3.3244.14
Walls /wp-admin/edit.php?post_type=mwall3.3235.79
Add New Wall /wp-admin/post-new.php?post_type=mwall3.4643.62

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

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

Browser metrics Passed 4 tests

Minitek Wall: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22814.27 ▼0.118.89 ▲7.1677.29 ▲38.19
Dashboard /wp-admin2,262 ▲774.90 ▼0.96104.09 ▲2.0753.92 ▲12.22
Posts /wp-admin/edit.php2,151 ▲622.05 ▲0.0640.40 ▲4.5251.22 ▲17.34
Add New Post /wp-admin/post-new.php1,557 ▲3823.08 ▼0.24633.84 ▼36.3754.02 ▼1.74
Media Library /wp-admin/upload.php1,436 ▲484.22 ▼0.0295.16 ▼4.4457.97 ▲14.04
Dashboard /wp-admin/edit.php?post_type=mwall&page=minitek-wall-dashboard1,0752.0326.9652.31
Walls /wp-admin/edit.php?post_type=mwall1,0961.9830.6028.78
Add New Wall /wp-admin/post-new.php?post_type=mwall6,0652.9964.9790.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=mwall
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 50× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/minitek-wall/public/partials/minitek-wall-public-sortings.php:14
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/minitek-wall/public/partials/minitek-wall-public-items.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/minitek-wall/admin/partials/minitek-wall-admin-page-dashboard.php:25
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/minitek-wall/admin/partials/fields/minitek-wall-admin-field-checkbox.php on line 17
    • > PHP Notice
      Undefined variable: wall_options in wp-content/plugins/minitek-wall/public/partials/minitek-wall-public-filters.php on line 84
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/minitek-wall/public/partials/grids/masonry-list.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/minitek-wall/public/partials/minitek-wall-public-filters.php on line 144
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/minitek-wall/admin/partials/fields/minitek-wall-admin-field-checkbox.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minitek-wall/admin/partials/metabox/minitek-wall-admin-metabox-wall-options-general.php:20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/minitek-wall/public/partials/minitek-wall-public-items.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === minitek-wall === )
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

minitek-wall/minitek-wall.php Passed 13 tests

The primary PHP file in "Minitek Wall" version 1.2.1 is used by WordPress to initiate all plugin functionality
69 characters long description:
A powerful masonry layout system for displaying content in WordPress.

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 plugin12,743 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,9521,83910,289
CSS4311601,599
JavaScript8166105837
SVG10011
Markdown1607

PHP code Passed 2 tests

This is a short overview 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.31
Average class complexity47.50
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity8.86
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods71
▷ Static methods45.63%
▷ Public methods5983.10%
▷ Protected methods00.00%
▷ Private methods1216.90%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png3.10KB0.28KB▼ 90.91%
public/images/next.png1.32KB1.58KB0.00%
public/images/close.png0.27KB0.29KB0.00%
public/images/prev.png1.33KB1.59KB0.00%