84% maester-toolkit

Code Review | Maester Toolkit

WordPress plugin Maester Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: maester-toolkit
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 14, 2019
  • Latest release: Sep 26, 2019
  • Number of updates: 18
  • Update frequency: every 5.9 days
  • Top authors: feehatheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,794 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.21MB] [CPU: ▼1.73ms] Passed 4 tests

An overview of server-side resources used by Maester Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2239.50 ▼2.95
Dashboard /wp-admin3.51 ▲0.2150.88 ▲2.28
Posts /wp-admin/edit.php3.63 ▲0.2750.30 ▲1.16
Add New Post /wp-admin/post-new.php6.09 ▲0.2193.17 ▼7.40
Media Library /wp-admin/upload.php3.43 ▲0.2139.31 ▲5.62

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Maester Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲13113.67 ▼0.755.69 ▲3.1640.14 ▼9.36
Dashboard /wp-admin2,206 ▲214.82 ▼1.07110.95 ▲6.8643.77 ▲3.84
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0439.40 ▼1.6135.55 ▼2.19
Add New Post /wp-admin/post-new.php1,558 ▲1618.12 ▼0.21613.13 ▼2.9368.75 ▲17.08
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.09101.79 ▼1.5041.26 ▼1.49

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

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

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
Good news, no errors were detected

SRP 50% 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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/maester-toolkit/elementor-addons/elementor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-taxonomy.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-login-forms.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-login.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-template-functions.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maester-toolkit/inc/maester-toolkit-register.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: toolkit, maester

maester-toolkit/maester-toolkit.php 85% from 13 tests

The primary PHP file in "Maester Toolkit" version 1.0.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")
  • Requires at least: Required version must match the one declared in readme.txt ("4.3" instead of "4.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,081 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP122801541,486
CSS276213
Sass480209
JavaScript32620173

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.50
▷ Minimum class complexity6.00
▷ Maximum class complexity7.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods866.67%
▷ Protected methods433.33%
▷ Private methods00.00%
Functions40
▷ Named functions3485.00%
▷ Anonymous functions615.00%
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 files were detected