84% mintships

Code Review | Mintships

WordPress plugin Mintships scored84%from 54 tests.

About plugin

  • Plugin page: mintships
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.3
  • WordPress version: 6.3.1
  • First release: May 20, 2022
  • Latest release: May 20, 2022
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: mintships (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Mintships
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.91 ▲3.57
Dashboard /wp-admin3.32 ▲0.0246.47 ▼7.10
Posts /wp-admin/edit.php3.37 ▲0.0148.46 ▼2.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.65 ▼15.79
Media Library /wp-admin/upload.php3.24 ▲0.0137.73 ▼0.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Mintships
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.34 ▼1.044.10 ▲2.0540.14 ▼3.16
Dashboard /wp-admin2,221 ▲155.87 ▼0.0198.45 ▼5.5440.01 ▼6.27
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0240.60 ▼1.0335.72 ▼1.44
Add New Post /wp-admin/post-new.php6,366 ▲4,82527.65 ▲4.28871.39 ▲196.2454.57 ▲1.14
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0698.09 ▼7.1742.37 ▼3.84

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

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mintships\\add_action() in wp-content/plugins/mintships/src/blocks.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: nft, iframe, block, erc20, erc1155...

mintships/plugin.php 85% from 13 tests

"Mintships" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mintships.php" instead of "plugin.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin245 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4276170
PHP2181348
Sass11014
JSON10012
CSS1001

PHP code Passed 2 tests

A brief analysis 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.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin